(svn r4652) - NewGRF: support loading of foundation and canal graphics from NewGRF files via action 5
authorpeter1138
Mon, 01 May 2006 18:57:43 +0000
changeset 3709 be60bcc248bc
parent 3708 1c548218151c
child 3710 a3db4dff570f
(svn r4652) - NewGRF: support loading of foundation and canal graphics from NewGRF files via action 5
newgrf.c
--- a/newgrf.c	Mon May 01 16:54:18 2006 +0000
+++ b/newgrf.c	Mon May 01 18:57:43 2006 +0000
@@ -1915,6 +1915,22 @@
 			replace = SPR_ELRAIL_BASE + 3;
 			break;
 
+		case 0x06: /* Foundations */
+			if (num != 74) {
+				grfmsg(GMS_WARN, "GraphicsNews: Foundation graphics sprite count must be 74, skipping.");
+				return;
+			}
+			replace = SPR_SLOPES_BASE;
+			break;
+
+		case 0x08: /* Canal graphics */
+			if (num != 65) {
+				grfmsg(GMS_WARN, "GraphicsNews: Canal graphics sprite count must be 65, skipping.");
+				return;
+			}
+			replace = SPR_CANALS_BASE + 5;
+			break;
+
 		default:
 			grfmsg(GMS_NOTICE, "GraphicsNew: Custom graphics (type 0x%02X) sprite block of length %u (unimplemented, ignoring).\n",
 					type, num);