File diff r7848:705b74bab657 → r7849:cfd99cb69695
src/water_cmd.cpp
Show inline comments
 
@@ -27,12 +27,13 @@
 
#include "roadveh.h"
 
#include "water_map.h"
 
#include "industry_map.h"
 
#include "newgrf.h"
 
#include "newgrf_canal.h"
 
#include "misc/autoptr.hpp"
 
#include "transparency.h"
 

	
 
/** Array for the shore sprites */
 
static const SpriteID _water_shore_sprites[] = {
 
	0,
 
	SPR_SHORE_TILEH_1,  // SLOPE_W
 
	SPR_SHORE_TILEH_2,  // SLOPE_S
 
@@ -446,13 +447,13 @@ static void DrawWaterStuff(const TileInf
 

	
 
	for (; wdts->delta_x != 0x80; wdts++) {
 
		AddSortableSpriteToDraw(wdts->image + base + ((wdts->image < 24) ? locks_base : 0), palette,
 
			ti->x + wdts->delta_x, ti->y + wdts->delta_y,
 
			wdts->width, wdts->height,
 
			wdts->unk, ti->z + wdts->delta_z,
 
			HASBIT(_transparent_opt, TO_BUILDINGS));
 
			IsTransparencySet(TO_BUILDINGS));
 
	}
 
}
 

	
 
static void DrawTile_Water(TileInfo *ti)
 
{
 
	switch (GetWaterTileType(ti->tile)) {