(svn r3714) Add functions to turn tiles into water and shore tiles
This commit is contained in:
27
water_map.h
Normal file
27
water_map.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/* $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
|
||||
Reference in New Issue
Block a user