Skip to content

Commit 8614cdc

Browse files
committed
refactor: Remove single-line condition braces
1 parent 7047265 commit 8614cdc

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5536,9 +5536,7 @@ void Object::doCommandButtonAtObject( const CommandButton *commandButton, Object
55365536
case GUI_COMMAND_COMBATDROP:
55375537
#if RETAIL_COMPATIBLE_CRC
55385538
if (!obj)
5539-
{
55405539
return;
5541-
}
55425540
#endif
55435541

55445542
if( ai )
@@ -5550,9 +5548,7 @@ void Object::doCommandButtonAtObject( const CommandButton *commandButton, Object
55505548
{
55515549
#if RETAIL_COMPATIBLE_CRC
55525550
if (!obj)
5553-
{
55545551
return;
5555-
}
55565552
#endif
55575553

55585554
if( commandButton->getSpecialPowerTemplate() )

GeneralsMD/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptActions.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5890,9 +5890,7 @@ void ScriptActions::doTeamUseCommandButtonOnNearestObjectType( const AsciiString
58905890
bestObj = ThePartitionManager->getClosestObject(&pos, REALLY_FAR, FROM_CENTER_2D, filters);
58915891
#if RETAIL_COMPATIBLE_CRC
58925892
if (!bestObj)
5893-
{
58945893
return;
5895-
}
58965894
#endif
58975895
}
58985896
else
@@ -5934,9 +5932,7 @@ void ScriptActions::doTeamUseCommandButtonOnNearestObjectType( const AsciiString
59345932

59355933
#if !RETAIL_COMPATIBLE_CRC
59365934
if (!bestObj)
5937-
{
59385935
return;
5939-
}
59405936
#endif
59415937

59425938
// already been checked for validity

0 commit comments

Comments
 (0)