mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
28 lines
391 B
C
28 lines
391 B
C
|
/* $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
|