OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

void_map.h
Go to the documentation of this file.
1 /* $Id: void_map.h 26878 2014-09-21 11:23:33Z rubidium $ */
2
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 */
9
12 #ifndef VOID_MAP_H
13 #define VOID_MAP_H
14
15 #include "tile_map.h"
16
21 static inline void MakeVoid(TileIndex t)
22 {
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;
32 }
33
34 #endif /* VOID_MAP_H */