src/void_map.h
author skidd13
Sun, 02 Dec 2007 21:43:16 +0000
changeset 8004 1c54bc6f4bdf
parent 6489 511474c82dd3
child 8108 b42a0e5c67ef
permissions -rw-r--r--
(svn r11563) -Codechange: Align the preprocessor code in stdafx.h with tabs
3075
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     1
/* $Id$ */
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     2
6423
8e10e79e0fd1 (svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents: 6332
diff changeset
     3
/** @file void_map.h */
8e10e79e0fd1 (svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents: 6332
diff changeset
     4
3145
e833d7a78887 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     5
#ifndef VOID_MAP_H
e833d7a78887 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     6
#define VOID_MAP_H
e833d7a78887 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     7
6489
511474c82dd3 (svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents: 6423
diff changeset
     8
/**
511474c82dd3 (svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents: 6423
diff changeset
     9
 * Make a nice void tile ;)
511474c82dd3 (svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents: 6423
diff changeset
    10
 * @param t the tile to make void
511474c82dd3 (svn r9670) -Documentation: add documentation to some the _map files.
rubidium
parents: 6423
diff changeset
    11
 */
3075
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    12
static inline void MakeVoid(TileIndex t)
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    13
{
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    14
	SetTileType(t, MP_VOID);
3080
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    15
	SetTileHeight(t, 0);
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    16
	_m[t].m1 = 0;
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    17
	_m[t].m2 = 0;
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    18
	_m[t].m3 = 0;
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    19
	_m[t].m4 = 0;
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    20
	_m[t].m5 = 0;
5596
5bf7128140a0 (svn r8050) -Codechange: Rename map member extra to m6, since its usage has been widden.
belugas
parents: 5475
diff changeset
    21
	_m[t].m6 = 0;
6332
f3f436dcd7d0 (svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
maedhros
parents: 5596
diff changeset
    22
	_me[t].m7 = 0;
3075
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    23
}
3145
e833d7a78887 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
    24
4666
172a0cdf28a6 (svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch]
peter1138
parents: 3145
diff changeset
    25
#endif /* VOID_MAP_H */