mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
changed hardcoded numbers to enums in preparation for total merc number increase
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6042 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5353,9 +5353,9 @@ return 1;
|
||||
|
||||
static int l_usStrategicInsertionDataProfileID(lua_State *L)
|
||||
{
|
||||
BOOLEAN Bool;
|
||||
SOLDIERTYPE * pSoldier;
|
||||
UINT32 sGridNo = 0;
|
||||
//BOOLEAN Bool;
|
||||
SOLDIERTYPE * pSoldier;
|
||||
UINT32 sGridNo = 0;
|
||||
|
||||
if ( lua_gettop(L) >= 1 )
|
||||
{
|
||||
@@ -5363,14 +5363,14 @@ UINT32 sGridNo = 0;
|
||||
|
||||
pSoldier = FindSoldierByProfileID( ID, FALSE );
|
||||
if (pSoldier)
|
||||
{
|
||||
sGridNo = pSoldier->usStrategicInsertionData;
|
||||
}
|
||||
{
|
||||
sGridNo = pSoldier->usStrategicInsertionData;
|
||||
}
|
||||
|
||||
lua_pushinteger(L, sGridNo);
|
||||
}
|
||||
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int l_bNeutral(lua_State *L)
|
||||
@@ -6719,7 +6719,7 @@ static int l_Action_door_close (lua_State *L)
|
||||
//action
|
||||
static int l_SetOffBombsByFrequency (lua_State *L)
|
||||
{
|
||||
SOLDIERTYPE * pSoldier;
|
||||
//SOLDIERTYPE * pSoldier;
|
||||
|
||||
if ( lua_gettop(L) >= 2 )
|
||||
{
|
||||
@@ -10625,7 +10625,7 @@ static int l_CheckFact (lua_State *L)
|
||||
ubProfileID = lua_tointeger(L,i);
|
||||
}
|
||||
|
||||
if ( ubProfileID != 255 && CheckFact( fact, ubProfileID ) )
|
||||
if ( ubProfileID != NUM_PROFILES && CheckFact( fact, ubProfileID ) )
|
||||
{
|
||||
checkfact= TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user