mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Ctrl + D in turnbased - skip player interrupts for that turn (by Sevenfm)
- This only works for singleplayer - This only works for Old interrupt system git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6682 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -168,6 +168,8 @@ void StartPlayerTeamTurn( BOOLEAN fDoBattleSnd, BOOLEAN fEnteringCombatMode )
|
||||
|
||||
SetFastForwardMode(FALSE);
|
||||
|
||||
gTacticalStatus.ubDisablePlayerInterrupts = FALSE;
|
||||
|
||||
// Start the turn of player charactors
|
||||
|
||||
//
|
||||
@@ -2005,6 +2007,10 @@ BOOLEAN InterruptDuel( SOLDIERTYPE * pSoldier, SOLDIERTYPE * pOpponent)
|
||||
DebugMsg (TOPIC_JA2INTERRUPT,DBG_LEVEL_3,"InterruptDuel");
|
||||
BOOLEAN fResult = FALSE;
|
||||
|
||||
// sevenfm: if Ctrl+D pressed - skip all player interrupts for this turn
|
||||
if( !is_networked && !gGameOptions.fImprovedInterruptSystem && pSoldier->bTeam == OUR_TEAM && gTacticalStatus.ubDisablePlayerInterrupts )
|
||||
return FALSE;
|
||||
|
||||
// if opponent can't currently see us and we can see them
|
||||
if ( pSoldier->aiData.bOppList[ pOpponent->ubID ] == SEEN_CURRENTLY && pOpponent->aiData.bOppList[pSoldier->ubID] != SEEN_CURRENTLY )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user