water_map.h
author tron
Fri, 03 Mar 2006 20:54:54 +0000
changeset 3135 a6897653e648
parent 3111 750f37699a13
child 3372 f6afa98d5219
permissions -rw-r--r--
(svn r3750) Use INVALID_STATION instead of -1 in NPF
/* $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