summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-11-27 14:09:13 +0000
committerpeter1138 <peter1138@openttd.org>2006-11-27 14:09:13 +0000
commit2f0bdeefb9a3a5cfe8f3e78f64c94b8a25936e58 (patch)
treede5e50c6cfadf57db4f8171990f53dca645eeeba /newgrf.c
parent69b6e598e33915ba4abb075c1b3b50ab6df809d8 (diff)
downloadopenttd-2f0bdeefb9a3a5cfe8f3e78f64c94b8a25936e58.tar.xz
(svn r7266) -Codechange: Make the NewGRF loading stage look like ttdpatch to NewGRFs
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newgrf.c b/newgrf.c
index e51307eba..9846a0ba1 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -2183,8 +2183,8 @@ static uint32 GetParamVal(byte param, uint32 *cond_val)
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) {