forked from mirror/OpenTTD
(svn r17105) -Codechange: no need to reset list of industries nearby that often, clearing is enough
This commit is contained in:
@@ -287,7 +287,7 @@ static bool FindIndustryToDeliver(TileIndex ind_tile, void *user_data)
|
|||||||
*/
|
*/
|
||||||
void Station::RecomputeIndustriesNear()
|
void Station::RecomputeIndustriesNear()
|
||||||
{
|
{
|
||||||
this->industries_near.Reset();
|
this->industries_near.Clear();
|
||||||
if (this->rect.IsEmpty()) return;
|
if (this->rect.IsEmpty()) return;
|
||||||
|
|
||||||
/* Compute acceptance rectangle */
|
/* Compute acceptance rectangle */
|
||||||
|
Reference in New Issue
Block a user