water_map.h
author tron
Fri, 24 Mar 2006 08:00:45 +0000
changeset 3314 6aaeba4b92e8
parent 3111 750f37699a13
child 3372 f6afa98d5219
permissions -rw-r--r--
(svn r4077) Add GetIndustry{Index,ByTile}() to get the industry index resp. the industry from a tile
/* $Id$ */

#ifndef WATER_MAP_H
#define WATER_MAP_H

static inline void MakeWater(TileIndex t)
{
	SetTileType(t, MP_WATER);
	SetTileOwner(t, OWNER_WATER);
	_m[t].m2 = 0;
	_m[t].m3 = 0;
	_m[t].m4 = 0;
	_m[t].m5 = 0;
}


static inline void MakeShore(TileIndex t)
{
	SetTileType(t, MP_WATER);
	SetTileOwner(t, OWNER_WATER);
	_m[t].m2 = 0;
	_m[t].m3 = 0;
	_m[t].m4 = 0;
	_m[t].m5 = 1;
}

#endif