2006-02-24 19:52:26 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
|
|
|
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
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 */
|