Changeset - r7209:2181e4df966d
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-07-09 16:24:00
rubidium@openttd.org
(svn r10487) -Fix: forgot some breaks in a switch statement.
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/newgrf_industries.cpp
Show inline comments
 
@@ -335,10 +335,10 @@ bool CheckIfCallBackAllowsCreation(TileI
 

	
 
	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;
0 comments (0 inline, 0 general)