(svn r7266) -Codechange: Make the NewGRF loading stage look like ttdpatch to NewGRFs
authorpeter1138
Mon, 27 Nov 2006 14:09:13 +0000
changeset 5161 a064564a4a70
parent 5160 87fdcde7eb27
child 5162 f1d90a883266
(svn r7266) -Codechange: Make the NewGRF loading stage look like ttdpatch to NewGRFs
newgrf.c
--- a/newgrf.c	Sun Nov 26 15:38:48 2006 +0000
+++ b/newgrf.c	Mon Nov 27 14:09:13 2006 +0000
@@ -2183,8 +2183,8 @@
 		case 0x83: /* current climate, 0=temp, 1=arctic, 2=trop, 3=toyland */
 			return _opt.landscape;
 
-		case 0x84: /* .grf loading stage, 0=initialization, 1=activation */
-			return _cur_stage;
+		case 0x84: /* GRF loading stage */
+			return (_cur_stage > GLS_INIT) | ((_cur_stage == GLS_ACTIVATION) << 9);
 
 		case 0x85: /* TTDPatch flags, only for bit tests */
 			if (cond_val == NULL) {