equal
deleted
inserted
replaced
333 |
333 |
334 if (group == NULL || group->type != SGT_CALLBACK) return false; |
334 if (group == NULL || group->type != SGT_CALLBACK) return false; |
335 |
335 |
336 switch (group->g.callback.result) { |
336 switch (group->g.callback.result) { |
337 case 0x400: return true; |
337 case 0x400: return true; |
338 case 0x401: _error_message = STR_0239_SITE_UNSUITABLE; |
338 case 0x401: _error_message = STR_0239_SITE_UNSUITABLE; break; |
339 case 0x402: _error_message = STR_0317_CAN_ONLY_BE_BUILT_IN_RAINFOREST; |
339 case 0x402: _error_message = STR_0317_CAN_ONLY_BE_BUILT_IN_RAINFOREST; break; |
340 case 0x403: _error_message = STR_0318_CAN_ONLY_BE_BUILT_IN_DESERT; |
340 case 0x403: _error_message = STR_0318_CAN_ONLY_BE_BUILT_IN_DESERT; break; |
341 default: _error_message = GetGRFStringID(indspec->grf_prop.grffile->grfid, 0xD000 + group->g.callback.result); |
341 default: _error_message = GetGRFStringID(indspec->grf_prop.grffile->grfid, 0xD000 + group->g.callback.result); break; |
342 } |
342 } |
343 |
343 |
344 return false; |
344 return false; |
345 } |
345 } |
346 |
346 |