From 27faf8d7632e4537e8ab2098e5bd492ff5686e1a Mon Sep 17 00:00:00 2001 From: silversurfer Date: Wed, 30 Oct 2013 11:25:54 +0000 Subject: [PATCH] Bugfix: Enemy/Militia Profiles will not overwrite tanks anymore git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6541 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Soldier Create.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Tactical/Soldier Create.cpp b/Tactical/Soldier Create.cpp index 6c80e139..4b1d1dc9 100644 --- a/Tactical/Soldier Create.cpp +++ b/Tactical/Soldier Create.cpp @@ -1649,7 +1649,14 @@ BOOLEAN TacticalCopySoldierFromCreateStruct( SOLDIERTYPE *pSoldier, SOLDIERCREAT if ( 1 ) { INT8 type = -1; - if ( pCreateStruct->bTeam == ENEMY_TEAM && gGameExternalOptions.fSoldierProfiles_Enemy ) + + // silversurfer: Don't replace tanks! + if ( pCreateStruct->bBodyType != TANK_NE && pCreateStruct->bBodyType != TANK_NW ) + { + // We have a function for this + type = pSoldier->GetSoldierProfileType( pCreateStruct->bTeam ); + +/* if ( pCreateStruct->bTeam == ENEMY_TEAM && gGameExternalOptions.fSoldierProfiles_Enemy ) { switch( pCreateStruct->ubSoldierClass ) { @@ -1678,6 +1685,7 @@ BOOLEAN TacticalCopySoldierFromCreateStruct( SOLDIERTYPE *pSoldier, SOLDIERCREAT type = 3; break; } + }*/ } if ( type > -1 )