2006-02-24 19:52:26 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file void_map.h Map accessors for void tiles. */
|
2007-04-04 04:08:47 +00:00
|
|
|
|
2006-03-05 11:18:34 +00:00
|
|
|
#ifndef VOID_MAP_H
|
|
|
|
#define VOID_MAP_H
|
|
|
|
|
2007-12-19 23:26:02 +00:00
|
|
|
#include "tile_map.h"
|
|
|
|
|
2007-04-18 18:20:31 +00:00
|
|
|
/**
|
|
|
|
* Make a nice void tile ;)
|
|
|
|
* @param t the tile to make void
|
|
|
|
*/
|
2006-02-24 19:52:26 +00:00
|
|
|
static inline void MakeVoid(TileIndex t)
|
|
|
|
{
|
|
|
|
SetTileType(t, MP_VOID);
|
2006-02-24 20:52:32 +00:00
|
|
|
SetTileHeight(t, 0);
|
|
|
|
_m[t].m1 = 0;
|
|
|
|
_m[t].m2 = 0;
|
|
|
|
_m[t].m3 = 0;
|
|
|
|
_m[t].m4 = 0;
|
|
|
|
_m[t].m5 = 0;
|
2007-01-11 02:05:13 +00:00
|
|
|
_m[t].m6 = 0;
|
2007-03-19 11:27:30 +00:00
|
|
|
_me[t].m7 = 0;
|
2006-02-24 19:52:26 +00:00
|
|
|
}
|
2006-03-05 11:18:34 +00:00
|
|
|
|
2006-09-28 18:42:35 +00:00
|
|
|
#endif /* VOID_MAP_H */
|