Fixed some type conversion warnings in VC. Mostly float <-> int and bool <-> int.

This commit is contained in:
rude
2011-01-09 16:28:30 +01:00
parent c5eb50d0d5
commit 31c9995082
9 changed files with 24 additions and 16 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ namespace sdl
case SDL_ACTIVEEVENT:
if (e.active.state & SDL_APPINPUTFOCUS) {
m.type = Event::TYPE_FOCUS;
m.focus.f = e.active.gain;
m.focus.f = (e.active.gain != 0);
return true;
} else break;
case SDL_QUIT:
+1 -1
View File
@@ -65,7 +65,7 @@ namespace sdl
msg.joystick.button = luaL_checkint(L, 3);
return true;
case Event::TYPE_FOCUS:
msg.focus.f = lua_toboolean(L, 2);
msg.focus.f = luax_toboolean(L, 2);
return true;
case Event::TYPE_QUIT:
return true;