summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-31 18:59:22 +0000
committertruelight <truelight@openttd.org>2004-12-31 18:59:22 +0000
commit2ebc5011f3a5e1d7d9cd474e1d0c7e2ec0765188 (patch)
tree21ce29d4fb9d60bbad6741715f96bf462f1eca82 /town_cmd.c
parent92ac503b744bb226d4b91fa55b42f92bd4bd9f69 (diff)
downloadopenttd-2ebc5011f3a5e1d7d9cd474e1d0c7e2ec0765188.tar.xz
(svn r1313) -Fix: fixed MSVC problem
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/town_cmd.c b/town_cmd.c
index b15e1f93d..3c0c357e3 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -183,8 +183,10 @@ static void MarkTownSignDirty(Town *t)
void UpdateTownVirtCoord(Town *t)
{
+ Point pt;
+
MarkTownSignDirty(t);
- Point pt = RemapCoords2(GET_TILE_X(t->xy)*16, GET_TILE_Y(t->xy)*16);
+ pt = RemapCoords2(GET_TILE_X(t->xy)*16, GET_TILE_Y(t->xy)*16);
SetDParam(0, t->townnametype);
SetDParam(1, t->townnameparts);
SetDParam(2, t->population);