(svn r27950) -Merge: Documentation updates from 1.7 branch
[openttd.git] / src / void_map.h
blob5ccc4e9d7d9b055897e3f8ea4220d67130864800
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
8 */
10 /** @file void_map.h Map accessors for void tiles. */
12 #ifndef VOID_MAP_H
13 #define VOID_MAP_H
15 #include "tile_map.h"
17 /**
18 * Make a nice void tile ;)
19 * @param t the tile to make void
21 static inline void MakeVoid(TileIndex t)
23 SetTileType(t, MP_VOID);
24 SetTileHeight(t, 0);
25 _m[t].m1 = 0;
26 _m[t].m2 = 0;
27 _m[t].m3 = 0;
28 _m[t].m4 = 0;
29 _m[t].m5 = 0;
30 _me[t].m6 = 0;
31 _me[t].m7 = 0;
34 #endif /* VOID_MAP_H */