src/newgrf.cpp
changeset 10042 b77001494a91
parent 10041 9b8ed66c3cf4
child 10043 7f8f7df729d3
--- a/src/newgrf.cpp	Sun Aug 31 15:26:46 2008 +0000
+++ b/src/newgrf.cpp	Sun Aug 31 15:46:14 2008 +0000
@@ -3068,7 +3068,7 @@
 
 			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 @@
 		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 @@
 		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 @@
 		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];