diff options
author | alberth <alberth@openttd.org> | 2010-03-06 12:15:03 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-03-06 12:15:03 +0000 |
commit | d4b748e27e9a09ae407ba605453c46071a626e1b (patch) | |
tree | 34d851270cb7786cc29399b87c9c67522a6c522b /src/base_station_base.h | |
parent | 993c9e6f626a4cddb273323e6fea9d05dc68b03f (diff) | |
download | openttd-d4b748e27e9a09ae407ba605453c46071a626e1b.tar.xz |
(svn r19335) -Codechange: StationRect::BeforeAddTile() returns a CommandCost.
Diffstat (limited to 'src/base_station_base.h')
-rw-r--r-- | src/base_station_base.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base_station_base.h b/src/base_station_base.h index 5718edc48..d6d97cc83 100644 --- a/src/base_station_base.h +++ b/src/base_station_base.h @@ -13,6 +13,7 @@ #define BASE_STATION_BASE_H #include "core/pool_type.hpp" +#include "command_type.h" #include "viewport_type.h" #include "station_map.h" @@ -39,7 +40,7 @@ struct StationRect : public Rect { void MakeEmpty(); bool PtInExtendedRect(int x, int y, int distance = 0) const; bool IsEmpty() const; - bool BeforeAddTile(TileIndex tile, StationRectMode mode); + CommandCost BeforeAddTile(TileIndex tile, StationRectMode mode); bool BeforeAddRect(TileIndex tile, int w, int h, StationRectMode mode); bool AfterRemoveTile(BaseStation *st, TileIndex tile); bool AfterRemoveRect(BaseStation *st, TileIndex tile, int w, int h); |