From 18de82b00037452d844e50ea8a95f5410744fafd Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 27 Sep 2007 21:39:13 +0000 Subject: (svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C --- src/newgrf_industries.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newgrf_industries.cpp') diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 06b18d70e..8703ab417 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -257,7 +257,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par case 0x87: return industry->height;// xy dimensions /* */ case 0x88: - case 0x89: return indspec->produced_cargo[variable - 0x88]; + case 0x89: return industry->produced_cargo[variable - 0x88]; case 0x8A: return industry->produced_cargo_waiting[0]; case 0x8B: return GB(industry->produced_cargo_waiting[0], 8, 8); case 0x8C: return industry->produced_cargo_waiting[1]; @@ -266,7 +266,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par case 0x8F: return industry->production_rate[variable - 0x8E]; case 0x90: case 0x91: - case 0x92: return indspec->accepts_cargo[variable - 0x90]; + case 0x92: return industry->accepts_cargo[variable - 0x90]; case 0x93: return industry->prod_level; /* amount of cargo produced so far THIS month. */ case 0x94: return industry->this_month_production[0]; -- cgit v1.2.3-54-g00ecf