aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-07-02 15:03:27 +0100
committersapier <Sapier at GMX dot net>2014-07-16 17:37:12 +0200
commit07f444ed85dd900a75062e7dcf0cc0690063283b (patch)
treeab7d58e6f8361ee3b6193226ed4a4ba8d44b64cf /src
parentaebbcbf398a9dde6b2cbc8ab05c103f44f6f703d (diff)
downloadminetest-07f444ed85dd900a75062e7dcf0cc0690063283b.tar.gz
minetest-07f444ed85dd900a75062e7dcf0cc0690063283b.tar.bz2
minetest-07f444ed85dd900a75062e7dcf0cc0690063283b.zip
Permit non-integer sizes for item_image[]
Diffstat (limited to 'src')
-rw-r--r--src/guiFormSpecMenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index 910a0a6b7..d6a4b4f47 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -621,8 +621,8 @@ void GUIFormSpecMenu::parseItemImage(parserData* data,std::string element)
pos.Y += stof(v_pos[1]) * (float) spacing.Y;
v2s32 geom;
- geom.X = stoi(v_geom[0]) * (float)imgsize.X;
- geom.Y = stoi(v_geom[1]) * (float)imgsize.Y;
+ geom.X = stof(v_geom[0]) * (float)imgsize.X;
+ geom.Y = stof(v_geom[1]) * (float)imgsize.Y;
if(data->bp_set != 2)
errorstream<<"WARNING: invalid use of item_image without a size[] element"<<std::endl;