Skip to content

Commit

Permalink
Fix float parsing in the PROP tool
Browse files Browse the repository at this point in the history
  • Loading branch information
mniip committed May 13, 2018
1 parent 22e1de3 commit 9f6f43c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/game/PropertyTool.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 9f6f43c

Please sign in to comment.