1
0
forked from mirrors/0ad

Revamped CNetClient/CNetServer JS Interface and new CGameAttributes

implementation (moving towards a merger of CGameAttribs into CGame).

This was SVN commit r1746.
This commit is contained in:
olsner
2005-01-19 22:32:25 +00:00
parent b391fb89ef
commit ae38aee3d2
24 changed files with 803 additions and 522 deletions
+2 -3
View File
@@ -64,8 +64,7 @@ jsval SColour::ToString( JSContext* cx, uintN argc, jsval* argv )
buffer[255] = 0;
utf16string str16(buffer, buffer+wcslen(buffer));
return( STRING_TO_JSVAL( JS_NewUCStringCopyZ( cx, buffer ) ) );
return( STRING_TO_JSVAL( JS_NewUCStringCopyZ( cx, str16.c_str() ) ) );
}
@@ -85,4 +84,4 @@ JSBool SColour::Construct( JSContext* cx, JSObject* obj, unsigned int argc, jsva
*rval = OBJECT_TO_JSVAL( col->GetScript() );
return( JS_TRUE );
}
}