From 70eda57141172ddbc95807641973b69ad5880614 Mon Sep 17 00:00:00 2001 From: Shadooow Date: Mon, 21 Jun 2021 01:19:32 +0000 Subject: [PATCH] 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 --- Tactical/Overhead.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Tactical/Overhead.cpp b/Tactical/Overhead.cpp index 614276141..41e299d7e 100644 --- a/Tactical/Overhead.cpp +++ b/Tactical/Overhead.cpp @@ -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 )