From b157b47a348f87c0e5b4e277246b4450f36fa7ca Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Thu, 4 Mar 2021 21:00:28 +0000 Subject: [PATCH] GridNoSpotterCTHBonus: fixed bTeam type. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8949 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Soldier Control.cpp | 2 +- Tactical/Soldier Control.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tactical/Soldier Control.cpp b/Tactical/Soldier Control.cpp index 16425001..b02135c4 100644 --- a/Tactical/Soldier Control.cpp +++ b/Tactical/Soldier Control.cpp @@ -25094,7 +25094,7 @@ BOOLEAN PlayerTeamIsScanning( ) } // bonus for snipers firing at this location (we get this if there are spotters) -UINT16 GridNoSpotterCTHBonus( SOLDIERTYPE* pSniper, INT32 sGridNo, UINT bTeam ) +UINT16 GridNoSpotterCTHBonus( SOLDIERTYPE* pSniper, INT32 sGridNo, INT8 bTeam ) { UINT16 bestvalue = 0; diff --git a/Tactical/Soldier Control.h b/Tactical/Soldier Control.h index b7e2ffae..742539dd 100644 --- a/Tactical/Soldier Control.h +++ b/Tactical/Soldier Control.h @@ -2205,7 +2205,7 @@ BOOLEAN GetRadioOperatorSignal(UINT8 usOwner, INT32* psTargetGridNo); // retriev BOOLEAN IsValidArtilleryOrderSector( INT16 sSectorX, INT16 sSectorY, INT8 bSectorZ, UINT8 bTeam ); // can an artillery strike be ordered FROM this sector BOOLEAN SectorJammed(); BOOLEAN PlayerTeamIsScanning(); -UINT16 GridNoSpotterCTHBonus( SOLDIERTYPE* pSniper, INT32 sGridNo, UINT bTeam); // bonus for snipers firing at this location (we get this if there are spotters) +UINT16 GridNoSpotterCTHBonus( SOLDIERTYPE* pSniper, INT32 sGridNo, INT8 bTeam); // bonus for snipers firing at this location (we get this if there are spotters) UINT16 GetSuspiciousAnimationAPDuration( UINT16 usAnimation ); // get overt penalty duration in AP for using an animation //typedef struct