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:
@@ -1669,6 +1669,8 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
||||
{
|
||||
if ( !( gTacticalStatus.uiFlags & ENGAGED_IN_CONV ) )
|
||||
{
|
||||
gTacticalStatus.ubDisablePlayerInterrupts = FALSE;
|
||||
|
||||
gfSaveGame = FALSE;
|
||||
gfCameDirectlyFromGame = TRUE;
|
||||
|
||||
@@ -3137,12 +3139,16 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else //End turn only if in combat and it is the player's turn
|
||||
} else
|
||||
{
|
||||
//End turn only if in combat and it is the player's turn
|
||||
if ( fCtrl )
|
||||
gTacticalStatus.ubDisablePlayerInterrupts = TRUE;
|
||||
*puiNewEvent = I_ENDTURN;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef JA2TESTVERSION
|
||||
else if( fCtrl )
|
||||
AdvanceToNextDay();
|
||||
|
||||
Reference in New Issue
Block a user