changeset 5161:d7cdd8c839bf draft

(svn r7266) -Codechange: Make the NewGRF loading stage look like ttdpatch to NewGRFs
author peter1138 <peter1138@openttd.org>
date Mon, 27 Nov 2006 14:09:13 +0000
parents fe163cb1ac6c
children a891bf5de037
files newgrf.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/newgrf.c
+++ b/newgrf.c
@@ -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) {