Skip to content

Commit ac01816

Browse files
committed
Add braces to TheWindowManager conditional in both games
1 parent 884fc9e commit ac01816

File tree

2 files changed

+4
-0
lines changed
  • GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream
  • Generals/Code/GameEngine/Source/GameClient/MessageStream

2 files changed

+4
-0
lines changed

Generals/Code/GameEngine/Source/GameClient/MessageStream/WindowXlat.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ GameMessageDisposition WindowTranslator::translateGameMessage(const GameMessage
295295

296296
// process event through window system
297297
if( TheWindowManager )
298+
{
298299
returnCode = TheWindowManager->winProcessKey( key, state );
300+
}
299301

300302

301303
// If we're in a movie, we want to be able to escape out of it

GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/WindowXlat.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ GameMessageDisposition WindowTranslator::translateGameMessage(const GameMessage
313313

314314
// process event through window system
315315
if( TheWindowManager )
316+
{
316317
returnCode = TheWindowManager->winProcessKey( key, state );
318+
}
317319

318320

319321
// If we're in a movie, we want to be able to escape out of it

0 commit comments

Comments
 (0)