File diff r18291:faa18f9ceb25 → r18292:67d22b89b6c6
src/newgrf_town.cpp
Show inline comments
 
@@ -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;