mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Bugfix: Prevent merc swapping in tactical while they are talking (by silversurfer)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6281 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -264,6 +264,7 @@ void CheatCreateItem();
|
||||
// silversurfer: added for merc portrait swapping in tactical
|
||||
void SwapMercPortraits ( SOLDIERTYPE *pSoldier, INT8 bDirection );
|
||||
extern INT8 GetTeamSlotFromPlayerID( UINT8 ubID );
|
||||
extern FACETYPE *gpCurrentTalkingFace;
|
||||
|
||||
void GetTBMouseButtonInput( UINT32 *puiNewEvent )
|
||||
{
|
||||
@@ -7178,6 +7179,10 @@ void SwapMercPortraits ( SOLDIERTYPE *pSoldier, INT8 bDirection )
|
||||
if ( gsCurInterfacePanel != TEAM_PANEL )
|
||||
return;
|
||||
|
||||
// if someone is talking don't swap!
|
||||
if ( gpCurrentTalkingFace != NULL )
|
||||
return;
|
||||
|
||||
UINT8 ubSourceMerc = gusSelectedSoldier;
|
||||
UINT8 ubTargetMerc;
|
||||
UINT8 ubGroupID = pSoldier->ubGroupID;
|
||||
|
||||
Reference in New Issue
Block a user