From 9dee5402332496582e02beb9aed2733a0974491c Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 12 Jul 2007 07:57:08 +0000 Subject: (svn r10518) -Fix: use the location of the industry and not INVALID_TILE for production callbacks; makes looking at the environment of an industry a lot more useful. --- src/newgrf_industries.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 3b6722125..b9437531d 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -393,7 +393,7 @@ static int32 DerefIndProd(uint field, bool use_register) void IndustryProductionCallback(Industry *ind, int reason) { ResolverObject object; - NewIndustryResolver(&object, INVALID_TILE, ind); + NewIndustryResolver(&object, ind->xy, ind); object.callback_param2 = reason; for (uint loop = 0;; loop++) { -- cgit v1.2.3-70-g09d2