equal
deleted
inserted
replaced
1722 switch (prop) { |
1722 switch (prop) { |
1723 case 0x08: { // Substitute industry tile type |
1723 case 0x08: { // Substitute industry tile type |
1724 IndustryTileSpec **tilespec = &_cur_grffile->indtspec[indtid + i]; |
1724 IndustryTileSpec **tilespec = &_cur_grffile->indtspec[indtid + i]; |
1725 byte subs_id = grf_load_byte(&buf); |
1725 byte subs_id = grf_load_byte(&buf); |
1726 |
1726 |
1727 if (subs_id == 0xFF) { |
1727 if (subs_id >= NEW_INDUSTRYTILEOFFSET) { |
1728 /* Instead of defining a new industry, a substitute industry id |
|
1729 * of 0xFF disables the old industry with the current id. */ |
|
1730 tsp->enabled = false; |
|
1731 continue; |
|
1732 } else if (subs_id >= NEW_INDUSTRYTILEOFFSET) { |
|
1733 /* The substitute id must be one of the original industry tile. */ |
1728 /* The substitute id must be one of the original industry tile. */ |
1734 grfmsg(2, "IndustryTilesChangeInfo: Attempt to use new industry tile %u as substitute industry tile for %u. Ignoring.", subs_id, indtid + i); |
1729 grfmsg(2, "IndustryTilesChangeInfo: Attempt to use new industry tile %u as substitute industry tile for %u. Ignoring.", subs_id, indtid + i); |
1735 return false; |
1730 return false; |
1736 } |
1731 } |
1737 |
1732 |