mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r10487) -Fix: forgot some breaks in a switch statement.
This commit is contained in:
parent
6cf2aad165
commit
5bea6503a7
@ -335,10 +335,10 @@ bool CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint itspe
|
|||||||
|
|
||||||
switch (group->g.callback.result) {
|
switch (group->g.callback.result) {
|
||||||
case 0x400: return true;
|
case 0x400: return true;
|
||||||
case 0x401: _error_message = STR_0239_SITE_UNSUITABLE;
|
case 0x401: _error_message = STR_0239_SITE_UNSUITABLE; break;
|
||||||
case 0x402: _error_message = STR_0317_CAN_ONLY_BE_BUILT_IN_RAINFOREST;
|
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;
|
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);
|
default: _error_message = GetGRFStringID(indspec->grf_prop.grffile->grfid, 0xD000 + group->g.callback.result); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user