# HG changeset patch # User nemo # Date 1291944928 18000 # Node ID d2454e4dbd03a65bd622727acb0cc4ae3fab865b # Parent 8c9595e3953929b66557838b96fe6a3eb6fdbb61 return RGBA diff -r 8c9595e39539 -r d2454e4dbd03 hedgewars/uScript.pas --- a/hedgewars/uScript.pas Thu Dec 09 19:10:37 2010 -0500 +++ b/hedgewars/uScript.pas Thu Dec 09 20:35:28 2010 -0500 @@ -499,7 +499,7 @@ LuaError('Lua: Wrong number of parameters passed to GetClanColor!'); lua_pushnil(L); // return value on stack (nil) end - else lua_pushinteger(L, ClansArray[lua_tointeger(L, 1)]^.Color); + else lua_pushinteger(L, ClansArray[lua_tointeger(L, 1)]^.Color shl 8 or $FF); lc_getclancolor:= 1 end;