mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(svn r17615) -Fix (r17612): town sign could be glitchy when creating town with custom name (Terkhen)
This commit is contained in:
parent
de96f4d309
commit
8f45efa8dd
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user