Warning Fixes - const correctness in unicode encoding, unused variables in blenlib...
[blender.git] / source / gameengine / Converter / KX_ConvertProperties.cpp
index 81a5f13b8f02edf49eda58e9439515c394c1eb0b..faa7780bac03d612e5d0999af760110535ec11ce 100644 (file)
@@ -201,7 +201,7 @@ void BL_ConvertTextProperty(Object* object, KX_FontObject* fontobj,SCA_TimeEvent
                }
                case GPROP_FLOAT:
                {
-                       float floatprop = atof(str);
+                       float floatprop = (float)atof(str);
                        propval = new CFloatValue(floatprop);
                        tprop->SetValue(propval);
                        break;
@@ -214,7 +214,7 @@ void BL_ConvertTextProperty(Object* object, KX_FontObject* fontobj,SCA_TimeEvent
                }
                case GPROP_TIME:
                {
-                       float floatprop = atof(str);
+                       float floatprop = (float)atof(str);
 
                        CValue* timeval = new CFloatValue(floatprop);
                        // set a subproperty called 'timer' so that