mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-05 13:55:03 +00:00
(svn r22973) -Add: support for replacing the buoy via action123
This commit is contained in:
parent
10fe88ba26
commit
1842622d81
@ -28,6 +28,8 @@ enum CanalFeature {
|
||||
CF_DOCKS,
|
||||
CF_RIVER_SLOPE,
|
||||
CF_RIVER_EDGE,
|
||||
CF_RIVER_GUI,
|
||||
CF_BUOY,
|
||||
CF_END,
|
||||
};
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "newgrf_cargo.h"
|
||||
#include "newgrf_debug.h"
|
||||
#include "newgrf_station.h"
|
||||
#include "newgrf_canal.h" /* For the buoy */
|
||||
#include "pathfinder/yapf/yapf_cache.h"
|
||||
#include "road_internal.h" /* For drawing catenary/checking road removal */
|
||||
#include "autoslope.h"
|
||||
@ -2669,7 +2670,11 @@ draw_default_foundation:
|
||||
}
|
||||
}
|
||||
|
||||
if (IsBuoy(ti->tile) || IsDock(ti->tile) || (IsOilRig(ti->tile) && IsTileOnWater(ti->tile))) {
|
||||
if (IsBuoy(ti->tile)) {
|
||||
DrawWaterClassGround(ti);
|
||||
SpriteID sprite = GetCanalSprite(CF_BUOY, ti->tile);
|
||||
if (sprite != 0) total_offset = sprite - SPR_IMG_BUOY;
|
||||
} else if (IsDock(ti->tile) || (IsOilRig(ti->tile) && IsTileOnWater(ti->tile))) {
|
||||
if (ti->tileh == SLOPE_FLAT) {
|
||||
DrawWaterClassGround(ti);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user