Skip to content
Permalink
Browse files

Permit non-integer sizes for item_image[]

  • Loading branch information
Zefram sapier
Zefram authored and sapier committed Jul 2, 2014
1 parent aebbcbf commit 07f444ed85dd900a75062e7dcf0cc0690063283b
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 07f444e

Please sign in to comment.
You can’t perform that action at this time.