Compilation fixes: A typo, and a cast double->int
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1119 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
8114cae1e9
commit
7105566433
@ -102,10 +102,10 @@ int L_SetColor(lua_State* L)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int L_GetColor(lua_state* L)
|
int L_GetColor(lua_State* L)
|
||||||
{
|
{
|
||||||
T_Components couleur;
|
T_Components couleur;
|
||||||
couleur = Main_palette[lua_tonumber(L,1)];
|
couleur = Main_palette[(int)(lua_tonumber(L,1))];
|
||||||
|
|
||||||
lua_pushinteger(L, couleur.R);
|
lua_pushinteger(L, couleur.R);
|
||||||
lua_pushinteger(L, couleur.G);
|
lua_pushinteger(L, couleur.G);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user