summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-09 16:24:00 +0000
committerrubidium <rubidium@openttd.org>2007-07-09 16:24:00 +0000
commit5bea6503a70ecce7b65ca585bf8478c053b33f10 (patch)
treeecef9ea42e5f7f30ce55ef2fc97b712cf3149b05
parent6cf2aad16550db18ae5f82720ead2fbb51cb253a (diff)
downloadopenttd-5bea6503a70ecce7b65ca585bf8478c053b33f10.tar.xz
(svn r10487) -Fix: forgot some breaks in a switch statement.
-rw-r--r--src/newgrf_industries.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index 323143156..33925dcbe 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -335,10 +335,10 @@ bool CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint itspe
switch (group->g.callback.result) {
case 0x400: return true;
- case 0x401: _error_message = STR_0239_SITE_UNSUITABLE;
- case 0x402: _error_message = STR_0317_CAN_ONLY_BE_BUILT_IN_RAINFOREST;
- case 0x403: _error_message = STR_0318_CAN_ONLY_BE_BUILT_IN_DESERT;
- default: _error_message = GetGRFStringID(indspec->grf_prop.grffile->grfid, 0xD000 + group->g.callback.result);
+ case 0x401: _error_message = STR_0239_SITE_UNSUITABLE; break;
+ case 0x402: _error_message = STR_0317_CAN_ONLY_BE_BUILT_IN_RAINFOREST; break;
+ case 0x403: _error_message = STR_0318_CAN_ONLY_BE_BUILT_IN_DESERT; break;
+ default: _error_message = GetGRFStringID(indspec->grf_prop.grffile->grfid, 0xD000 + group->g.callback.result); break;
}
return false;