- Fixed a few compilation warnings (uninitialized variables, ...)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6257 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-07-29 09:15:21 +00:00
parent 76d517be0c
commit 0e3865a4ef
5 changed files with 5 additions and 7 deletions
-2
View File
@@ -162,8 +162,6 @@ BOOLEAN EnterAimLinks()
void ExitAimLinks()
{
INT16 i;
RemoveAimDefaults();
#ifdef JA2UB
+2 -1
View File
@@ -2442,9 +2442,10 @@ BOOLEAN AreAllPlayerMercTraversingBetweenSectors()
BOOLEAN RecordJa25StrategicAiDecisions( INT16 sSectorAttacked, UINT8 ubNumEnemies )
{
/*
CHAR8 zOutputString[512];
HWFILE hFile;
/*
//open up the debug file
hFile = FileOpen( JA25_SAI_DEBUG_FILE, FILE_ACCESS_WRITE | FILE_OPEN_ALWAYS, FALSE );
if( !hFile )
-1
View File
@@ -8044,7 +8044,6 @@ static int l_CreateItemInv (lua_State *L)
{
UINT8 n = lua_gettop(L);
int i;
INT32 iWorldItem;
OBJECTTYPE Object;
UINT8 UBID = 0;
SOLDIERTYPE * pSoldier;
+2 -1
View File
@@ -1319,7 +1319,8 @@ void HandleDeathInPowerGenSector( SOLDIERTYPE *pSoldier )
UINT8 ubNumFlagedEnemiesInSector=0;
UINT32 sRandomSlotGridNo;
UINT8 uiCnt;
SOLDIERINITNODE *pInitListSoldier;
//SOLDIERINITNODE *pInitListSoldier;
#define NUM_ENEMIES_SLOTS 4
+1 -2
View File
@@ -1404,7 +1404,6 @@ void AddSoldierInitListMilitia( UINT8 ubNumGreen, UINT8 ubNumRegs, UINT8 ubNumEl
UINT8 ubFreeSlots;
UINT8 *pCurrSlots=NULL;
UINT8 *pCurrTotal=NULL;
UINT8 ubCurrClass;
DebugMsg(TOPIC_JA2,DBG_LEVEL_3,String("AddSoldierInitListMilitia"));
@@ -2853,4 +2852,4 @@ void SectorAddPrisonersofWar( INT16 sMapX, INT16 sMapY, INT16 sMapZ )
else
break;
}
}
}