mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 04:13:26 +00:00
(svn r12247) -Fix (r9315): Town variables 0x9E to 0xAD (company ratings) returned wrong values.
This commit is contained in:
parent
c2f3e0e326
commit
93b3a66678
@ -47,13 +47,21 @@ uint32 TownGetVariable(byte variable, byte parameter, bool *available, const Tow
|
||||
case 0x9C: return t->radius[4];
|
||||
case 0x9D: return GB(t->radius[4], 8, 8);
|
||||
case 0x9E: return t->ratings[0];
|
||||
case 0x9F: return t->ratings[1];
|
||||
case 0xA0: return t->ratings[2];
|
||||
case 0xA1: return t->ratings[3];
|
||||
case 0xA2: return t->ratings[4];
|
||||
case 0xA3: return t->ratings[5];
|
||||
case 0xA4: return t->ratings[6];
|
||||
case 0xA5: return t->ratings[7];
|
||||
case 0x9F: return GB(t->ratings[0], 8, 8);
|
||||
case 0xA0: return t->ratings[1];
|
||||
case 0xA1: return GB(t->ratings[1], 8, 8);
|
||||
case 0xA2: return t->ratings[2];
|
||||
case 0xA3: return GB(t->ratings[2], 8, 8);
|
||||
case 0xA4: return t->ratings[3];
|
||||
case 0xA5: return GB(t->ratings[3], 8, 8);
|
||||
case 0xA6: return t->ratings[4];
|
||||
case 0xA7: return GB(t->ratings[4], 8, 8);
|
||||
case 0xA8: return t->ratings[5];
|
||||
case 0xA9: return GB(t->ratings[5], 8, 8);
|
||||
case 0xAA: return t->ratings[6];
|
||||
case 0xAB: return GB(t->ratings[6], 8, 8);
|
||||
case 0xAC: return t->ratings[7];
|
||||
case 0xAD: return GB(t->ratings[7], 8, 8);
|
||||
case 0xAE: return t->have_ratings;
|
||||
case 0xB2: return t->statues;
|
||||
case 0xB6: return t->num_houses;
|
||||
|
Loading…
Reference in New Issue
Block a user