town_cmd.c
changeset 836 8d2ecd281d34
parent 835 f6a341f541d7
child 863 6a1444534f62
--- a/town_cmd.c	Fri Dec 31 18:57:24 2004 +0000
+++ b/town_cmd.c	Fri Dec 31 18:59:22 2004 +0000
@@ -183,8 +183,10 @@
 
 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);