maintenance: minor code touch ups

This commit is contained in:
tmj-fstate
2017-11-01 02:54:31 +01:00
parent ffbaacdb0e
commit a700d36ea7
20 changed files with 53 additions and 46 deletions

View File

@@ -134,8 +134,8 @@ bool TEventLauncher::check_conditions()
// key and modifier
auto const modifier = ( iKey & 0xff00 ) >> 8;
bCond = ( Console::Pressed( iKey & 0xff ) )
&& ( modifier & 1 ? Global::shiftState : true )
&& ( modifier & 2 ? Global::ctrlState : true );
&& ( ( modifier & 1 ) ? Global::shiftState : true )
&& ( ( modifier & 2 ) ? Global::ctrlState : true );
}
else {
// just key