fixed warning

This commit is contained in:
Pawel Kolodziejski
2008-07-06 14:22:34 +00:00
parent 3d867109e1
commit 3ec690cf87
+8 -8
View File
@@ -2654,35 +2654,35 @@ static void DrawPolygon() {
lua_pushobject(tableObj1);
lua_pushnumber(1);
pointObj = lua_gettable();
x1 = lua_getnumber(pointObj);
x1 = (int)lua_getnumber(pointObj);
lua_pushobject(tableObj1);
lua_pushnumber(2);
pointObj = lua_gettable();
y1 = lua_getnumber(pointObj);
y1 = (int)lua_getnumber(pointObj);
lua_pushobject(tableObj1);
lua_pushnumber(3);
pointObj = lua_gettable();
x2 = lua_getnumber(pointObj);
x2 = (int)lua_getnumber(pointObj);
lua_pushobject(tableObj1);
lua_pushnumber(4);
pointObj = lua_gettable();
y2 = lua_getnumber(pointObj);
y2 = (int)lua_getnumber(pointObj);
lua_pushobject(tableObj1);
lua_pushnumber(5);
pointObj = lua_gettable();
x3 = lua_getnumber(pointObj);
x3 = (int)lua_getnumber(pointObj);
lua_pushobject(tableObj1);
lua_pushnumber(6);
pointObj = lua_gettable();
y3 = lua_getnumber(pointObj);
y3 = (int)lua_getnumber(pointObj);
lua_pushobject(tableObj1);
lua_pushnumber(7);
pointObj = lua_gettable();
x4 = lua_getnumber(pointObj);
x4 = (int)lua_getnumber(pointObj);
lua_pushobject(tableObj1);
lua_pushnumber(8);
pointObj = lua_gettable();
y4 = lua_getnumber(pointObj);
y4 = (int)lua_getnumber(pointObj);
} else {
lua_pushnil();
}