1
0
Fork 0

(svn r17615) -Fix (r17612): town sign could be glitchy when creating town with custom name (Terkhen)

release/1.0
smatz 2009-09-22 18:55:15 +00:00
parent de96f4d309
commit 8f45efa8dd
1 changed files with 4 additions and 1 deletions

View File

@ -1586,7 +1586,10 @@ CommandCost CmdFoundTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
} }
UpdateNearestTownForRoadTiles(false); UpdateNearestTownForRoadTiles(false);
_generating_world = false; _generating_world = false;
if (t != NULL && !StrEmpty(text)) t->name = strdup(text); if (t != NULL && !StrEmpty(text)) {
t->name = strdup(text);
t->UpdateVirtCoord();
}
} }
return cost; return cost;
} }