Merge branch 'jgrpp' into jgrpp-nrt
This commit is contained in:
@@ -193,6 +193,8 @@ Industry::~Industry()
|
||||
for (Station *st : this->stations_near) {
|
||||
st->industries_near.erase(this);
|
||||
}
|
||||
|
||||
if (_game_mode == GM_NORMAL) RegisterGameEvents(GEF_INDUSTRY_DELETE);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1872,6 +1874,7 @@ static void DoCreateNewIndustry(Industry *i, TileIndex tile, IndustryType type,
|
||||
InvalidateWindowData(WC_INDUSTRY_DIRECTORY, 0, 0);
|
||||
|
||||
if (!_generating_world) PopulateStationsNearby(i);
|
||||
if (_game_mode == GM_NORMAL) RegisterGameEvents(GEF_INDUSTRY_CREATE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user