Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,10 @@ GameMessageDisposition WindowTranslator::translateGameMessage(const GameMessage
returnCode = WIN_INPUT_USED;
}

// TheSuperHackers @bugfix If the input is disabled, then only allow the ESC button to get through.
// Otherwise it would be possible to call user camera actions during scripted camera scenes.
if(returnCode != WIN_INPUT_USED
&& (key == KEY_ESC)
&& (BitIsSet( state, KEY_STATE_UP ))
&& (key != KEY_ESC)
&& (TheInGameUI && (TheInGameUI->getInputEnabled() == FALSE)) )
{
returnCode = WIN_INPUT_USED;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,10 @@ GameMessageDisposition WindowTranslator::translateGameMessage(const GameMessage
returnCode = WIN_INPUT_USED;
}

// TheSuperHackers @bugfix If the input is disabled, then only allow the ESC button to get through.
// Otherwise it would be possible to call user camera actions during scripted camera scenes.
if(returnCode != WIN_INPUT_USED
&& (key == KEY_ESC)
&& (BitIsSet( state, KEY_STATE_UP ))
&& (key != KEY_ESC)
&& (TheInGameUI && (TheInGameUI->getInputEnabled() == FALSE)) )
{
returnCode = WIN_INPUT_USED;
Expand Down
Loading