Add very and extremely slow options to town growth rate setting

This commit is contained in:
Jonathan G Rennison
2017-08-20 11:14:43 +01:00
parent 0d2be99827
commit 36a712a579
7 changed files with 39 additions and 6 deletions

View File

@@ -1445,6 +1445,21 @@ static bool UpdateClientConfigValues(int32 p1)
/* End - Callback Functions */
/* Begin - GUI order callbacks */
static int OrderTownGrowthRate(uint nth)
{
if (nth == 0) {
return 0;
} else if (nth <= 2) {
return nth - 3;
} else {
return nth - 2;
}
}
/* End - GUI order callbacks */
/**
* Prepare for reading and old diff_custom by zero-ing the memory.
*/