mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
no battle records for POW mercs
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9092 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+10
-7
@@ -7722,13 +7722,16 @@ BOOLEAN CheckForEndOfBattle( BOOLEAN fAnEnemyRetreated )
|
||||
{
|
||||
if( pTeamSoldier->bTeam == gbPlayerNum )
|
||||
{
|
||||
// SANDRO - records - num tactical battles
|
||||
gMercProfiles[pTeamSoldier->ubProfile].records.usBattlesTactical++;
|
||||
// largest battle experienced
|
||||
if (gMercProfiles[pTeamSoldier->ubProfile].records.usLargestBattleFought < ( gTacticalStatus.bNumFoughtInBattle[ ENEMY_TEAM ] + gTacticalStatus.bNumFoughtInBattle[ CREATURE_TEAM ] + gTacticalStatus.bNumFoughtInBattle[ CIV_TEAM ] ))
|
||||
{
|
||||
gMercProfiles[pTeamSoldier->ubProfile].records.usLargestBattleFought = ( gTacticalStatus.bNumFoughtInBattle[ ENEMY_TEAM ] + gTacticalStatus.bNumFoughtInBattle[ CREATURE_TEAM ] + gTacticalStatus.bNumFoughtInBattle[ CIV_TEAM ] );
|
||||
}
|
||||
if (pTeamSoldier->bAssignment != ASSIGNMENT_POW)
|
||||
{
|
||||
// SANDRO - records - num tactical battles
|
||||
gMercProfiles[pTeamSoldier->ubProfile].records.usBattlesTactical++;
|
||||
// largest battle experienced
|
||||
if (gMercProfiles[pTeamSoldier->ubProfile].records.usLargestBattleFought < (gTacticalStatus.bNumFoughtInBattle[ENEMY_TEAM] + gTacticalStatus.bNumFoughtInBattle[CREATURE_TEAM] + gTacticalStatus.bNumFoughtInBattle[CIV_TEAM]))
|
||||
{
|
||||
gMercProfiles[pTeamSoldier->ubProfile].records.usLargestBattleFought = (gTacticalStatus.bNumFoughtInBattle[ENEMY_TEAM] + gTacticalStatus.bNumFoughtInBattle[CREATURE_TEAM] + gTacticalStatus.bNumFoughtInBattle[CIV_TEAM]);
|
||||
}
|
||||
}
|
||||
|
||||
// If this guy is OKLIFE & not standing, make stand....
|
||||
if ( pTeamSoldier->stats.bLife >= OKLIFE && !pTeamSoldier->bCollapsed )
|
||||
|
||||
Reference in New Issue
Block a user