silence a bunch of msvc warnings

This commit is contained in:
Colby Klein
2019-03-28 15:05:07 -07:00
parent dcb2f74c8d
commit 4977f29fe3
11 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -1628,8 +1628,8 @@ int LuaFunc_SaveScreenshot(lua_State *L)
// If pn is provided, save to that player's profile.
// Otherwise, save to the machine.
PlayerNumber pn= Enum::Check<PlayerNumber>(L, 1, true);
bool compress= lua_toboolean(L, 2);
bool sign= lua_toboolean(L, 3);
bool compress= lua_toboolean(L, 2) > 0;
bool sign= lua_toboolean(L, 3) > 0;
RString prefix= luaL_optstring(L, 4, "");
RString suffix= luaL_optstring(L, 5, "");
RString dir;