mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make sure relevant std::stringstreams are set to binary
This commit is contained in:
parent
766e885a1b
commit
75bf9b75ca
17 changed files with 54 additions and 66 deletions
|
@ -3933,9 +3933,7 @@ void GUIFormSpecMenu::acceptInput(FormspecQuitMode quitmode)
|
|||
}
|
||||
|
||||
if (e != 0) {
|
||||
std::stringstream ss;
|
||||
ss << (e->getActiveTab() +1);
|
||||
fields[name] = ss.str();
|
||||
fields[name] = itos(e->getActiveTab() + 1);
|
||||
}
|
||||
} else if (s.ftype == f_CheckBox) {
|
||||
// No dynamic cast possible due to some distributions shipped
|
||||
|
@ -3961,12 +3959,10 @@ void GUIFormSpecMenu::acceptInput(FormspecQuitMode quitmode)
|
|||
e = static_cast<GUIScrollBar *>(element);
|
||||
|
||||
if (e) {
|
||||
std::stringstream os;
|
||||
os << e->getPos();
|
||||
if (s.fdefault == L"Changed")
|
||||
fields[name] = "CHG:" + os.str();
|
||||
fields[name] = "CHG:" + itos(e->getPos());
|
||||
else
|
||||
fields[name] = "VAL:" + os.str();
|
||||
fields[name] = "VAL:" + itos(e->getPos());
|
||||
}
|
||||
} else if (s.ftype == f_AnimatedImage) {
|
||||
// No dynamic cast possible due to some distributions shipped
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue