(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.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 17 years ago
parent bbe5d876cf
commit 9dee540233

@ -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++) {

Loading…
Cancel
Save