minor code cleanup

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8393 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2017-03-11 13:19:20 +00:00
parent dc5db5c06a
commit 125fda3905
5 changed files with 54 additions and 108 deletions
+5 -9
View File
@@ -4864,31 +4864,27 @@ return 1;
static int l_NumWoundedMercsNearby(lua_State *L)
{
if ( lua_gettop(L) >= 1 )
{
INT8 ID = lua_tointeger(L,1);
INT8 ID2 = NumWoundedMercsNearby(ID);
UINT8 ID = lua_tointeger(L,1);
UINT32 ID2 = NumWoundedMercsNearby( ID );
lua_pushinteger(L, ID2);
}
return 1;
return 1;
}
static int l_gubFact(lua_State *L)
{
if ( lua_gettop(L) >= 2 )
{
UINT32 Fact = lua_tointeger(L,1);
BOOLEAN Bool = lua_toboolean(L,2);
gubFact[Fact] = Bool;
gubFact[Fact] = Bool;
}
return 0;
return 0;
}
static int l_CheckPlayerHasHead(lua_State *L)