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:
Flugente
2013-04-30 21:31:04 +00:00
parent 82dec9404c
commit 2455c2c467
11 changed files with 35 additions and 34 deletions
+9 -9
View File
@@ -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;
}