Fix #10490: Allow ships to exit depots if another is not moving at the exit point...
[openttd-github.git] / src / void_map.h
blobe8e031be79835f2f356ba002b9f22b258f50202c
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 inline void MakeVoid(Tile t)
21 SetTileType(t, MP_VOID);
22 SetTileHeight(t, 0);
23 t.m1() = 0;
24 t.m2() = 0;
25 t.m3() = 0;
26 t.m4() = 0;
27 t.m5() = 0;
28 t.m6() = 0;
29 t.m7() = 0;
32 #endif /* VOID_MAP_H */