Codechange: make use of Tile in for all direct map accesses

This commit is contained in:
Rubidium
2023-01-21 16:40:28 +01:00
committed by rubidium42
parent 7a6452d3ef
commit 580d0a6343
30 changed files with 963 additions and 946 deletions

View File

@@ -16,17 +16,17 @@
* Make a nice void tile ;)
* @param t the tile to make void
*/
static inline void MakeVoid(TileIndex t)
static inline void MakeVoid(Tile t)
{
SetTileType(t, MP_VOID);
SetTileHeight(t, 0);
_m[t].m1 = 0;
_m[t].m2 = 0;
_m[t].m3 = 0;
_m[t].m4 = 0;
_m[t].m5 = 0;
_me[t].m6 = 0;
_me[t].m7 = 0;
t.m1() = 0;
t.m2() = 0;
t.m3() = 0;
t.m4() = 0;
t.m5() = 0;
t.m6() = 0;
t.m7() = 0;
}
#endif /* VOID_MAP_H */