projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aebbcbf
)
Permit non-integer sizes for item_image[]
author
Zefram
<zefram@fysh.org>
Wed, 2 Jul 2014 14:03:27 +0000
(15:03 +0100)
committer
sapier
<Sapier at GMX dot net>
Wed, 16 Jul 2014 15:37:12 +0000
(17:37 +0200)
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index 910a0a6b77c98bab887655f79f8449f84723b4e4..d6a4b4f47e24d8024b7a53bc2b9a3f42fefa29d2 100644
(file)
--- 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 = sto
i
(v_geom[0]) * (float)imgsize.X;
- geom.Y = sto
i
(v_geom[1]) * (float)imgsize.Y;
+ geom.X = sto
f
(v_geom[0]) * (float)imgsize.X;
+ geom.Y = sto
f
(v_geom[1]) * (float)imgsize.Y;
if(data->bp_set != 2)
errorstream<<"WARNING: invalid use of item_image without a size[] element"<<std::endl;