void_map.h
author celestar
Sun, 31 Dec 2006 18:03:21 +0000
branchcustombridgeheads
changeset 5615 d6197e6c420e
parent 4666 850b5b6e4bac
permissions -rw-r--r--
(svn r7705) [cbh] - Fix: Trains leave the bridge according to the trackbits that a present on the bridge head.
WARNING: zero-length bridges do not work yet
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     1
/* $Id$ */
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     2
3145
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     3
#ifndef VOID_MAP_H
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     4
#define VOID_MAP_H
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     5
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     6
static inline void MakeVoid(TileIndex t)
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     7
{
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     8
	SetTileType(t, MP_VOID);
3080
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
     9
	SetTileHeight(t, 0);
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    10
	_m[t].m1 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    11
	_m[t].m2 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    12
	_m[t].m3 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    13
	_m[t].m4 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    14
	_m[t].m5 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    15
	_m[t].extra = 0;
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    16
}
3145
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
    17
4666
850b5b6e4bac (svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents: 3145
diff changeset
    18
#endif /* VOID_MAP_H */