From f4f124c7b0fe62fee8118d03570477d6d73176fb Mon Sep 17 00:00:00 2001 From: Flugente Date: Thu, 23 Jul 2015 19:14:21 +0000 Subject: [PATCH] - Obliterating a sector will now destroy tanks as well. - Spawning a new enemy via [Alt] + [b] can create tanks. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7928 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Handle UI.cpp | 8 +++++--- Tactical/Turn Based Input.cpp | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Tactical/Handle UI.cpp b/Tactical/Handle UI.cpp index abcbd0d7..c8c4dfd4 100644 --- a/Tactical/Handle UI.cpp +++ b/Tactical/Handle UI.cpp @@ -1156,11 +1156,13 @@ UINT32 UIHandleNewBadMerc( UI_EVENT *pUIEvent ) return( GAME_SCREEN ); } - usRandom = (UINT16)Random( 10 ); - if( usRandom < 4 ) + usRandom = (UINT16)Random( 12 ); + if( usRandom < 3 ) pSoldier = TacticalCreateAdministrator(); - else if( usRandom < 8 ) + else if( usRandom < 6 ) pSoldier = TacticalCreateArmyTroop(); + else if ( usRandom < 9 ) + pSoldier = TacticalCreateEnemyTank( ); else pSoldier = TacticalCreateEliteEnemy( ); diff --git a/Tactical/Turn Based Input.cpp b/Tactical/Turn Based Input.cpp index 5287f3f1..983a7dd5 100644 --- a/Tactical/Turn Based Input.cpp +++ b/Tactical/Turn Based Input.cpp @@ -5039,7 +5039,7 @@ void ObliterateSector() // CreateAnimationTile( &AniParams ); //PlayJA2Sample( EXPLOSION_1, RATE_11025, MIDVOLUME, 1, MIDDLEPAN ); - pTSoldier->EVENT_SoldierGotHit( 0, 400, 0, pTSoldier->ubDirection, 320, NOBODY , FIRE_WEAPON_NO_SPECIAL, pTSoldier->bAimShotLocation, 0, NOWHERE ); + pTSoldier->EVENT_SoldierGotHit( 1, 400, 0, pTSoldier->ubDirection, 320, NOBODY , FIRE_WEAPON_NO_SPECIAL, pTSoldier->bAimShotLocation, 0, NOWHERE ); } } }