1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

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

This commit is contained in:
smatz
2009-09-22 18:55:15 +00:00
parent de96f4d309
commit 8f45efa8dd

View File

@@ -1586,7 +1586,10 @@ CommandCost CmdFoundTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
}
UpdateNearestTownForRoadTiles(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;
}