(svn r12118) -Codechange: Put the two descriptions of bridges in an array instead of two single variables, following the transport type it represents

This commit is contained in:
belugas
2008-02-12 03:05:27 +00:00
parent 7d88f6688e
commit d465b23ee2
4 changed files with 16 additions and 22 deletions

View File

@@ -1250,14 +1250,10 @@ static bool BridgeChangeInfo(uint brid, int numinfo, int prop, byte **bufp, int
if (newone != STR_UNDEFINED) bridge->material = newone;
} break;
case 0x11: { // description of bridge with rails
case 0x11: // description of bridge with rails or roads
case 0x12: {
StringID newone = GetGRFStringID(_cur_grffile->grfid, grf_load_word(&buf));
if (newone != STR_UNDEFINED) bridge->name_rail = newone;
} break;
case 0x12: { // description of bridge with roads
StringID newone = GetGRFStringID(_cur_grffile->grfid, grf_load_word(&buf));
if (newone != STR_UNDEFINED) bridge->name_road = newone;
if (newone != STR_UNDEFINED) bridge->transport_name[prop - 0x11] = newone;
} break;
default: