mirror of https://github.com/OpenTTD/OpenTTD.git
(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.
This commit is contained in:
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…
Reference in New Issue