diff options
author | yexo <yexo@openttd.org> | 2010-02-02 23:11:10 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-02-02 23:11:10 +0000 |
commit | 39c1de23d611d287d38afc88c42bb4b4a864d20f (patch) | |
tree | c7f795bdecb3b69029b9ae82a79c968d77c4430f | |
parent | 2798fdf082a5372d3e6a60556af24871618287c7 (diff) | |
download | openttd-39c1de23d611d287d38afc88c42bb4b4a864d20f.tar.xz |
(svn r18988) -Fix: [NewGRF] industry var A5 (=high 8 bits of var A4) returned the high 8 bits of var A2. Same problem for 9B/9A/98
-rw-r--r-- | src/newgrf_industries.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index f1b0e0ae1..7c62a650f 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -302,7 +302,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par case 0x98: return industry->this_month_transported[0]; case 0x99: return GB(industry->this_month_transported[0], 8, 8); case 0x9A: return industry->this_month_transported[1]; - case 0x9B: return GB(industry->this_month_transported[0], 8, 8); + case 0x9B: return GB(industry->this_month_transported[1], 8, 8); /* fraction of cargo transported LAST month. */ case 0x9C: case 0x9D: return industry->last_month_pct_transported[variable - 0x9C]; @@ -315,7 +315,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par case 0xA2: return industry->last_month_transported[0]; case 0xA3: return GB(industry->last_month_transported[0], 8, 8); case 0xA4: return industry->last_month_transported[1]; - case 0xA5: return GB(industry->last_month_transported[0], 8, 8); + case 0xA5: return GB(industry->last_month_transported[1], 8, 8); case 0xA6: return industry->type; case 0xA7: return industry->founder; |