summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-01 18:53:30 +0000
committerrubidium <rubidium@openttd.org>2010-08-01 18:53:30 +0000
commite356cb94050797cccbf05b3a411105528da8ee90 (patch)
tree3d98354dc5983a03e685f116b1b5c5b73607de0f /src/company_cmd.cpp
parent605f6d0ed3c81a77d533f3db40ed50350d57536c (diff)
downloadopenttd-e356cb94050797cccbf05b3a411105528da8ee90.tar.xz
(svn r20281) -Codechange: unify case scope closure + break coding style
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index a7578be1d..76fab7cc2 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -826,7 +826,8 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
}
}
#endif /* ENABLE_NETWORK */
- } break;
+ break;
+ }
case 1: // Make a new AI company
if (!(flags & DC_EXEC)) return CommandCost();
@@ -859,7 +860,8 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
CompanyID c_index = c->index;
delete c;
AI::BroadcastNewEvent(new AIEventCompanyBankrupt(c_index));
- } break;
+ break;
+ }
default: return CMD_ERROR;
}