Files
@ r3340:baed05973439
Branch filter:
Location: cpp/openttd-patchpack/source/water_map.h - annotation
r3340:baed05973439
391 B
text/x-c
(svn r4124) - CodeChange: remove windows-specific code from initializing the random generator. There was no need for it.
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
|