More type conversion warning cleanup.
This commit is contained in:
@@ -367,12 +367,12 @@ StoryDialog::StoryDialog(TiXmlElement* root, StoryFlow * mParent):StoryPage(mPar
|
||||
TiXmlElement* element = node->ToElement();
|
||||
if (element) {
|
||||
string sX = safeAttribute(element, "x");
|
||||
float x = atof(sX.c_str());
|
||||
float x = static_cast<float>(atof(sX.c_str()));
|
||||
if (x > 0 && x < 1){
|
||||
x = SCREEN_WIDTH_F * x;
|
||||
}
|
||||
string sY = safeAttribute(element,"y");
|
||||
float y = atof(sY.c_str());
|
||||
float y = static_cast<float>(atof(sY.c_str()));
|
||||
if (y > 0 && y < 1){
|
||||
y = SCREEN_HEIGHT_F * y;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user