mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-18 17:15:14 +01:00
(svn r11022) -Fix: the canal border determination did not take oil rigs into consideration.
This commit is contained in:
parent
9695727120
commit
dd60e3b7dd
@ -26,6 +26,7 @@
|
||||
#include "train.h"
|
||||
#include "roadveh.h"
|
||||
#include "water_map.h"
|
||||
#include "industry_map.h"
|
||||
#include "newgrf.h"
|
||||
#include "newgrf_canal.h"
|
||||
#include "misc/autoptr.hpp"
|
||||
@ -363,6 +364,7 @@ static bool IsWateredTile(TileIndex tile)
|
||||
}
|
||||
|
||||
case MP_STATION: return IsOilRig(tile) || IsDock(tile) || IsBuoy(tile);
|
||||
case MP_INDUSTRY: return (GetIndustrySpec(GetIndustryType(tile))->behaviour & INDUSTRYBEH_BUILT_ONWATER) != 0;
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user