diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_town.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/newgrf_town.cpp b/src/newgrf_town.cpp index ebf771ab2..223be9803 100644 --- a/src/newgrf_town.cpp +++ b/src/newgrf_town.cpp @@ -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; |