Changeset - r17847:7a7f000606af
[Not reviewed]
master
0 2 0
frosch - 13 years ago 2011-07-10 13:25:52
frosch@openttd.org
(svn r22648) -Fix (r22629): Missing 'break'. (thanks michi_cc)
2 files changed with 8 insertions and 8 deletions:
0 comments (0 inline, 0 general)
src/newgrf_industries.cpp
Show inline comments
 
@@ -548,10 +548,10 @@ CommandCost CheckIfCallBackAllowsCreatio
 

	
 
	CommandCost res;
 
	switch (result) {
 
		case 0x401: res = CommandCost(STR_ERROR_SITE_UNSUITABLE);
 
		case 0x402: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_RAINFOREST);
 
		case 0x403: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_DESERT);
 
		default:    res = CommandCost(GetGRFStringID(indspec->grf_prop.grffile->grfid, 0xD000 + result));
 
		case 0x401: res = CommandCost(STR_ERROR_SITE_UNSUITABLE); break;
 
		case 0x402: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_RAINFOREST); break;
 
		case 0x403: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_DESERT); break;
 
		default:    res = CommandCost(GetGRFStringID(indspec->grf_prop.grffile->grfid, 0xD000 + result)); break;
 
	}
 

	
 
	/* Copy some parameters from the registers to the error message text ref. stack */
src/newgrf_industrytiles.cpp
Show inline comments
 
@@ -307,10 +307,10 @@ CommandCost PerformIndustryTileSlopeChec
 

	
 
	CommandCost res;
 
	switch (callback_res) {
 
		case 0x401: res = CommandCost(STR_ERROR_SITE_UNSUITABLE);
 
		case 0x402: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_RAINFOREST);
 
		case 0x403: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_DESERT);
 
		default:    res = CommandCost(GetGRFStringID(its->grf_prop.grffile->grfid, 0xD000 + callback_res));
 
		case 0x401: res = CommandCost(STR_ERROR_SITE_UNSUITABLE); break;
 
		case 0x402: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_RAINFOREST); break;
 
		case 0x403: res = CommandCost(STR_ERROR_CAN_ONLY_BE_BUILT_IN_DESERT); break;
 
		default:    res = CommandCost(GetGRFStringID(its->grf_prop.grffile->grfid, 0xD000 + callback_res)); break;
 
	}
 

	
 
	/* Copy some parameters from the registers to the error message text ref. stack */
0 comments (0 inline, 0 general)