void_map.h
author rubidium
Tue, 26 Dec 2006 00:33:07 +0000
changeset 5562 6ad177b6c9ff
parent 4666 850b5b6e4bac
permissions -rw-r--r--
(svn r7559) -Fix (FS#456): clicking the 'Full Load' button when the 'current' order is selected in the Order GUI and one has instructed the train to go to the depot, via the button in the Train View GUI, changed the depot order by switching from 'service at depot' to 'stop at depot' and vice versa.
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 */