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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user