mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user