summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-13 18:04:01 +0000
committertron <tron@openttd.org>2005-07-13 18:04:01 +0000
commit8c1d74162f1544e351ae6308cbcca06f324c2c36 (patch)
treeb36523450a7bccf37ca126b6f857d1529d44c67b /economy.c
parent1a1dde7c8d0cf18e49b5af7fef1368216120eed1 (diff)
downloadopenttd-8c1d74162f1544e351ae6308cbcca06f324c2c36.tar.xz
(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/economy.c b/economy.c
index 00bcbc0a7..4864c2a1b 100644
--- a/economy.c
+++ b/economy.c
@@ -59,13 +59,13 @@ void UpdatePlayerHouse(Player *p, uint score)
(val+= 4, true);
/* house is already big enough */
- if (val <= _map5[tile])
+ if (val <= _m[tile].m5)
return;
- _map5[tile + TileDiffXY(0, 0)] = val;
- _map5[tile + TileDiffXY(0, 1)] = ++val;
- _map5[tile + TileDiffXY(1, 0)] = ++val;
- _map5[tile + TileDiffXY(1, 1)] = ++val;
+ _m[tile + TileDiffXY(0, 0)].m5 = val;
+ _m[tile + TileDiffXY(0, 1)].m5 = ++val;
+ _m[tile + TileDiffXY(1, 0)].m5 = ++val;
+ _m[tile + TileDiffXY(1, 1)].m5 = ++val;
MarkTileDirtyByTile(tile + TileDiffXY(0, 0));
MarkTileDirtyByTile(tile + TileDiffXY(0, 1));