projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ad9a8f
)
Fix negative offsets not being supported by container[]
author
rubenwardy
<rw@rubenwardy.com>
Sat, 3 Aug 2019 15:20:15 +0000
(16:20 +0100)
committer
rubenwardy
<rw@rubenwardy.com>
Sat, 3 Aug 2019 15:20:15 +0000
(16:20 +0100)
src/gui/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/guiFormSpecMenu.cpp
b/src/gui/guiFormSpecMenu.cpp
index da462c7e34c1f36f70bd724cdcff7747037fc5bb..4d3409f3bd44ffb6732fa6c3694f5bef9cf33db5 100644
(file)
--- a/
src/gui/guiFormSpecMenu.cpp
+++ b/
src/gui/guiFormSpecMenu.cpp
@@
-325,8
+325,8
@@
void GUIFormSpecMenu::parseContainer(parserData* data, const std::string &elemen
parts[1] = parts[1].substr(0, parts[1].find(';'));
container_stack.push(pos_offset);
- pos_offset.X +=
MYMAX(0, stof(parts[0])
);
- pos_offset.Y +=
MYMAX(0, stof(parts[1])
);
+ pos_offset.X +=
stof(parts[0]
);
+ pos_offset.Y +=
stof(parts[1]
);
return;
}
errorstream<< "Invalid container start element (" << parts.size() << "): '" << element << "'" << std::endl;