diff options
author | peter1138 <peter1138@openttd.org> | 2008-08-31 15:46:14 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-08-31 15:46:14 +0000 |
commit | 5dbac1d46198d567754842f2e2a7904c4b24c9fa (patch) | |
tree | d3dc2f4d6cbef60e59605b3e8c7b1795f01df278 /src | |
parent | b301bd832e96e73a0e0aa80dd451215d737778e3 (diff) | |
download | openttd-5dbac1d46198d567754842f2e2a7904c4b24c9fa.tar.xz |
(svn r14202) -Codechange: [NewGRF] Give more meaningful output if a house/industry/industrytile is undefined in action 3, and continue processing remaining IDs.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 44be5b158..a640b1485 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3068,7 +3068,7 @@ static void StationMapSpriteGroup(byte *buf, uint8 idcount) if (statspec == NULL) { grfmsg(1, "StationMapSpriteGroup: Station with ID 0x%02X does not exist, skipping", stations[i]); - return; + continue; } statspec->spritegroup[ctype] = _cur_grffile->spritegroups[groupid]; @@ -3112,8 +3112,8 @@ static void TownHouseMapSpriteGroup(byte *buf, uint8 idcount) HouseSpec *hs = _cur_grffile->housespec[houses[i]]; if (hs == NULL) { - grfmsg(1, "TownHouseMapSpriteGroup: Too many houses defined, skipping"); - return; + grfmsg(1, "TownHouseMapSpriteGroup: House %d undefined, skipping.", houses[i]); + continue; } hs->spritegroup = _cur_grffile->spritegroups[groupid]; @@ -3138,8 +3138,8 @@ static void IndustryMapSpriteGroup(byte *buf, uint8 idcount) IndustrySpec *indsp = _cur_grffile->industryspec[industries[i]]; if (indsp == NULL) { - grfmsg(1, "IndustryMapSpriteGroup: Too many industries defined, skipping"); - return; + grfmsg(1, "IndustryMapSpriteGroup: Industry %d undefined, skipping", industries[i]); + continue; } indsp->grf_prop.spritegroup = _cur_grffile->spritegroups[groupid]; @@ -3164,8 +3164,8 @@ static void IndustrytileMapSpriteGroup(byte *buf, uint8 idcount) IndustryTileSpec *indtsp = _cur_grffile->indtspec[indtiles[i]]; if (indtsp == NULL) { - grfmsg(1, "IndustrytileMapSpriteGroup: Too many industry tiles defined, skipping"); - return; + grfmsg(1, "IndustrytileMapSpriteGroup: Industry tile %d undefined, skipping", indtiles[i]); + continue; } indtsp->grf_prop.spritegroup = _cur_grffile->spritegroups[groupid]; |