Skip to content

Commit 07f444e

Browse files
Zeframsapier
Zefram
authored and
sapier
committedJul 16, 2014
Permit non-integer sizes for item_image[]
1 parent aebbcbf commit 07f444e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/guiFormSpecMenu.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,8 @@ void GUIFormSpecMenu::parseItemImage(parserData* data,std::string element)
621621
pos.Y += stof(v_pos[1]) * (float) spacing.Y;
622622

623623
v2s32 geom;
624-
geom.X = stoi(v_geom[0]) * (float)imgsize.X;
625-
geom.Y = stoi(v_geom[1]) * (float)imgsize.Y;
624+
geom.X = stof(v_geom[0]) * (float)imgsize.X;
625+
geom.Y = stof(v_geom[1]) * (float)imgsize.Y;
626626

627627
if(data->bp_set != 2)
628628
errorstream<<"WARNING: invalid use of item_image without a size[] element"<<std::endl;

0 commit comments

Comments
 (0)
Please sign in to comment.