forked from mirror/OpenTTD
(svn r17615) -Fix (r17612): town sign could be glitchy when creating town with custom name (Terkhen)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user