Minor bug fixes
This was SVN commit r1223.
This commit is contained in:
parent
3469e90636
commit
53719430d1
@ -546,7 +546,7 @@ JSBool CEntity::Construct( JSContext* cx, JSObject* obj, unsigned int argc, jsva
|
|||||||
if( !baseEntity )
|
if( !baseEntity )
|
||||||
{
|
{
|
||||||
*rval = JSVAL_NULL;
|
*rval = JSVAL_NULL;
|
||||||
JS_ReportError( cx, "No such template: %ls", CStr8(templateName).c_str() );
|
JS_ReportError( cx, "No such template: %s", CStr8(templateName).c_str() );
|
||||||
return( JS_TRUE );
|
return( JS_TRUE );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -619,8 +619,8 @@ bool CEntity::Order( JSContext* cx, uintN argc, jsval* argv, bool Queued )
|
|||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
newOrder.m_data[0].location.x = g_ScriptingHost.ValueToDouble( argv[1] );
|
newOrder.m_data[0].location.x = (float)g_ScriptingHost.ValueToDouble( argv[1] );
|
||||||
newOrder.m_data[0].location.y = g_ScriptingHost.ValueToDouble( argv[2] );
|
newOrder.m_data[0].location.y = (float)g_ScriptingHost.ValueToDouble( argv[2] );
|
||||||
}
|
}
|
||||||
catch( PSERROR_Scripting_ConversionFailed )
|
catch( PSERROR_Scripting_ConversionFailed )
|
||||||
{
|
{
|
||||||
|
@ -106,7 +106,7 @@ JSBool JSI_Entity::construct( JSContext* cx, JSObject* obj, unsigned int argc, j
|
|||||||
if( !baseEntity )
|
if( !baseEntity )
|
||||||
{
|
{
|
||||||
*rval = JSVAL_NULL;
|
*rval = JSVAL_NULL;
|
||||||
JS_ReportError( cx, "No such template: %ls", CStr8(templateName).c_str() );
|
JS_ReportError( cx, "No such template: %s", CStr8(templateName).c_str() );
|
||||||
return( JS_TRUE );
|
return( JS_TRUE );
|
||||||
}
|
}
|
||||||
JSI_Vector3D::Vector3D_Info* jsVector3D = NULL;
|
JSI_Vector3D::Vector3D_Info* jsVector3D = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user