Files
@ r3222:303ed792a936
Branch filter:
Location: cpp/openttd-patchpack/source/water_map.h - annotation
r3222:303ed792a936
391 B
text/x-c
(svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space reservation in savegames and update where used
- Also add this capability to settings
- Also add this capability to settings
r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 r3111:3de136b83596 | /* $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
|