mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- 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:
@@ -162,8 +162,6 @@ BOOLEAN EnterAimLinks()
|
||||
|
||||
void ExitAimLinks()
|
||||
{
|
||||
INT16 i;
|
||||
|
||||
RemoveAimDefaults();
|
||||
|
||||
#ifdef JA2UB
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1319,7 +1319,8 @@ void HandleDeathInPowerGenSector( SOLDIERTYPE *pSoldier )
|
||||
UINT8 ubNumFlagedEnemiesInSector=0;
|
||||
UINT32 sRandomSlotGridNo;
|
||||
UINT8 uiCnt;
|
||||
SOLDIERINITNODE *pInitListSoldier;
|
||||
|
||||
//SOLDIERINITNODE *pInitListSoldier;
|
||||
|
||||
#define NUM_ENEMIES_SLOTS 4
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user