(svn r9667) -Feature: Add the concept of cities. A (configurable) proportion of towns can

start off larger, and will grow twice as quickly as other towns. They can also
be placed specifically in the scenario editor. Thanks to TheJosh for the
initial patch and the idea.
This commit is contained in:
maedhros
2007-04-18 14:23:30 +00:00
parent 01ab087f35
commit 1a81c1cedd
9 changed files with 95 additions and 32 deletions

View File

@@ -1913,6 +1913,19 @@ bool AfterLoadGame()
}
}
/* A patch option containing the proportion of towns that grow twice as
* fast was added in version 54. From version 56 this is now saved in the
* town as cities can be built specifically in the scenario editor. */
if (CheckSavegameVersion(56)) {
Town *t;
FOR_ALL_TOWNS(t) {
if (_patches.larger_towns != 0 && (t->index % _patches.larger_towns) == 0) {
t->larger_town = true;
}
}
}
return true;
}