aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-08-03 16:20:15 +0100
committerrubenwardy <rw@rubenwardy.com>2019-08-03 16:20:15 +0100
commit41ad0f4f202b47daab0841a56bf27c3990670344 (patch)
tree4f7d6c8a4d88ced4ad119be572bb49211824a857 /src
parent3ad9a8f3a978b41a88ebf8a88690ad658cd132c7 (diff)
downloadminetest-41ad0f4f202b47daab0841a56bf27c3990670344.tar.gz
minetest-41ad0f4f202b47daab0841a56bf27c3990670344.tar.bz2
minetest-41ad0f4f202b47daab0841a56bf27c3990670344.zip
Fix negative offsets not being supported by container[]
Diffstat (limited to 'src')
-rw-r--r--src/gui/guiFormSpecMenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index da462c7e3..4d3409f3b 100644
--- 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;