mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r9709) -Fix (r9706): Larger towns use t->larger_towns, not the town index.
This commit is contained in:
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
Block a user