(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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user