Changeset - r18138:6c1d420b5b29
[Not reviewed]
master
0 2 0
rubidium - 13 years ago 2011-10-02 20:26:43
rubidium@openttd.org
(svn r22973) -Add: support for replacing the buoy via action123
2 files changed with 8 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf.h
Show inline comments
 
@@ -28,6 +28,8 @@ enum CanalFeature {
 
	CF_DOCKS,
 
	CF_RIVER_SLOPE,
 
	CF_RIVER_EDGE,
 
	CF_RIVER_GUI,
 
	CF_BUOY,
 
	CF_END,
 
};
 

	
src/station_cmd.cpp
Show inline comments
 
@@ -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 {
0 comments (0 inline, 0 general)