src/newgrf_town.cpp
branchnoai
changeset 9601 b499fdd106d5
parent 9476 1d1ed96f32ad
child 6720 35756db7e577
--- a/src/newgrf_town.cpp	Sun Apr 15 10:30:00 2007 +0000
+++ b/src/newgrf_town.cpp	Sun Apr 22 19:06:48 2007 +0000
@@ -4,6 +4,7 @@
 
 #include "stdafx.h"
 #include "openttd.h"
+#include "variables.h"
 #include "debug.h"
 #include "functions.h"
 #include "town.h"
@@ -18,7 +19,10 @@
 {
 	switch (variable) {
 		/* Larger towns */
-		case 0x40: return 1;
+		case 0x40:
+			if (_patches.larger_towns == 0) return 2;
+			if (t->larger_town) return 1;
+			return 0;
 
 		/* Town index */
 		case 0x41: return t->index;