Fix #8316: Make sort industries by production and transported with a cargo filter...
[openttd-github.git] / src / void_map.h
blob415e0a580369bd42fad4b1e72411e9e9c063f39b
1 /*
2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
6 */
8 /** @file void_map.h Map accessors for void tiles. */
10 #ifndef VOID_MAP_H
11 #define VOID_MAP_H
13 #include "tile_map.h"
15 /**
16 * Make a nice void tile ;)
17 * @param t the tile to make void
19 static inline void MakeVoid(TileIndex t)
21 SetTileType(t, MP_VOID);
22 SetTileHeight(t, 0);
23 _m[t].m1 = 0;
24 _m[t].m2 = 0;
25 _m[t].m3 = 0;
26 _m[t].m4 = 0;
27 _m[t].m5 = 0;
28 _me[t].m6 = 0;
29 _me[t].m7 = 0;
32 #endif /* VOID_MAP_H */