src/void_map.h
author richk
Tue, 17 Jun 2008 13:41:57 +0000
branchNewGRF_ports
changeset 10995 311b38c7f9a7
parent 10724 68a692eacf22
permissions -rw-r--r--
(svn r13549) [NewGRF_ports] -Change: Make recolouring of groundtile (0x0f80) specific to NewGRF_ports only.
Also base groundsprite on airport_tile of station. This prevents mixed colour groundtiles in an airport.
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
10724
68a692eacf22 (svn r13274) [NewGRF_ports] -Sync: with trunk r12806:13144.
richk
parents: 6872
diff changeset
     3
/** @file void_map.h Map accessors for void tiles. */
6719
4cc327ad39d5 (svn r10027) [NewGRF_ports] -Sync: with trunk r9506-10026
richk
parents: 6658
diff changeset
     4
3145
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     5
#ifndef VOID_MAP_H
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     6
#define VOID_MAP_H
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     7
6872
1c4a4a609f85 (svn r11950) [NewGRF_ports] -Sync with trunk r11566:11949.
rubidium
parents: 6719
diff changeset
     8
#include "tile_map.h"
1c4a4a609f85 (svn r11950) [NewGRF_ports] -Sync with trunk r11566:11949.
rubidium
parents: 6719
diff changeset
     9
6719
4cc327ad39d5 (svn r10027) [NewGRF_ports] -Sync: with trunk r9506-10026
richk
parents: 6658
diff changeset
    10
/**
4cc327ad39d5 (svn r10027) [NewGRF_ports] -Sync: with trunk r9506-10026
richk
parents: 6658
diff changeset
    11
 * Make a nice void tile ;)
4cc327ad39d5 (svn r10027) [NewGRF_ports] -Sync: with trunk r9506-10026
richk
parents: 6658
diff changeset
    12
 * @param t the tile to make void
4cc327ad39d5 (svn r10027) [NewGRF_ports] -Sync: with trunk r9506-10026
richk
parents: 6658
diff changeset
    13
 */
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    14
static inline void MakeVoid(TileIndex t)
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    15
{
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    16
	SetTileType(t, MP_VOID);
3080
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    17
	SetTileHeight(t, 0);
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    18
	_m[t].m1 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    19
	_m[t].m2 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    20
	_m[t].m3 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    21
	_m[t].m4 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    22
	_m[t].m5 = 0;
5847
9ce114e1d90d (svn r8050) -Codechange: Rename map member extra to m6, since its usage has been widden.
belugas
parents: 5726
diff changeset
    23
	_m[t].m6 = 0;
6658
59048224be55 (svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
maedhros
parents: 5847
diff changeset
    24
	_me[t].m7 = 0;
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    25
}
3145
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
    26
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
    27
#endif /* VOID_MAP_H */