|
@@ -21,13 +21,13 @@
|
|
|
* @param parameter unused
|
|
|
* @param available will return false if ever the variable asked for does not exist
|
|
|
* @param t is of course the town we are inquiring
|
|
|
* @param caller_grffile #GRFFile of the entity asking for a town variable.
|
|
|
* @return the value stored in the corresponding variable
|
|
|
*/
|
|
|
uint32 TownGetVariable(byte variable, byte parameter, bool *available, Town *t, const GRFFile *caller_grffile)
|
|
|
uint32 TownGetVariable(byte variable, uint32 parameter, bool *available, Town *t, const GRFFile *caller_grffile)
|
|
|
{
|
|
|
switch (variable) {
|
|
|
/* Larger towns */
|
|
|
case 0x40:
|
|
|
if (_settings_game.economy.larger_towns == 0) return 2;
|
|
|
if (t->larger_town) return 1;
|