mirror of https://github.com/OpenTTD/OpenTTD
(svn r1877) Forgot to remove two now unused variables
parent
4102982ef4
commit
c17c743ed4
|
@ -1181,17 +1181,12 @@ extern bool _ignore_restrictions;
|
||||||
|
|
||||||
static bool CheckNewIndustry_Oilwell(uint tile, int type)
|
static bool CheckNewIndustry_Oilwell(uint tile, int type)
|
||||||
{
|
{
|
||||||
int x,y;
|
|
||||||
|
|
||||||
if(_ignore_restrictions && _game_mode == GM_EDITOR)
|
if(_ignore_restrictions && _game_mode == GM_EDITOR)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (type != IT_OIL_RIG && _game_mode == GM_EDITOR)
|
if (type != IT_OIL_RIG && _game_mode == GM_EDITOR)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
x = TileX(tile);
|
|
||||||
y = TileY(tile);
|
|
||||||
|
|
||||||
if (DistanceFromEdge(TILE_ADDXY(tile, 1, 1)) < 16)
|
if (DistanceFromEdge(TILE_ADDXY(tile, 1, 1)) < 16)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue