mirror of https://github.com/OpenTTD/OpenTTD
(svn r9709) -Fix (r9706): Larger towns use t->larger_towns, not the town index.
parent
e5a314399a
commit
ac0c371d5a
|
@ -21,7 +21,7 @@ uint32 TownGetVariable(byte variable, byte parameter, bool *available, const Tow
|
||||||
/* Larger towns */
|
/* Larger towns */
|
||||||
case 0x40:
|
case 0x40:
|
||||||
if (_patches.larger_towns == 0) return 2;
|
if (_patches.larger_towns == 0) return 2;
|
||||||
if (t->index % _patches.larger_towns == 0) return 1;
|
if (t->larger_town) return 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Town index */
|
/* Town index */
|
||||||
|
|
Loading…
Reference in New Issue