Permalink
Browse files

Fix float parsing in the PROP tool

  • Loading branch information...
mniip committed May 13, 2018
1 parent 22e1de3 commit 9f6f43cf90e36cf4fad64b7302f83d6984840c3c
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/game/PropertyTool.cpp
@@ -179,7 +179,10 @@ void PropertyWindow::SetProperty()
float v = value.SubstrFromEnd(1).ToNumber<float>();
tool->propValue.Float = (v-32.0f)*5/9+273.15f;
}
tool->propValue.Float = value.ToNumber<float>();
else
{
tool->propValue.Float = value.ToNumber<float>();
}
#ifdef DEBUG
std::cout << "Got float value " << tool->propValue.Float << std::endl;
#endif

0 comments on commit 9f6f43c

Please sign in to comment.