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

(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when

you have that amount of towns in a map ;))
This commit is contained in:
truelight
2005-02-01 18:32:01 +00:00
parent 6d5fdc2b68
commit 777dd99585
7 changed files with 106 additions and 42 deletions

View File

@@ -595,6 +595,9 @@ static void FixTown(OldTown *o, int num, byte town_name_type)
if (o->xy == 0)
continue;
if (!AddBlockIfNeeded(&_town_pool, i))
error("Towns: failed loading savegame: too many towns");
t = GetTown(i);
t->xy = o->xy;