author | truebrain |
Mon, 30 Jun 2008 13:36:06 +0000 | |
branch | noai |
changeset 11100 | b960288098b9 |
parent 10455 | 22c441f5adf9 |
permissions | -rw-r--r-- |
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 |
|
10455
22c441f5adf9
(svn r12997) [NoAI] -Sync: with trunk r12895:12996.
rubidium
parents:
9723
diff
changeset
|
3 |
/** @file void_map.h Map accessors for void tiles. */ |
9574 | 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 |
|
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9601
diff
changeset
|
8 |
#include "tile_map.h" |
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9601
diff
changeset
|
9 |
|
9601
b499fdd106d5
(svn r9713) [NoAI] -Sync with trunk (r9631:9712).
rubidium
parents:
9574
diff
changeset
|
10 |
/** |
b499fdd106d5
(svn r9713) [NoAI] -Sync with trunk (r9631:9712).
rubidium
parents:
9574
diff
changeset
|
11 |
* Make a nice void tile ;) |
b499fdd106d5
(svn r9713) [NoAI] -Sync with trunk (r9631:9712).
rubidium
parents:
9574
diff
changeset
|
12 |
* @param t the tile to make void |
b499fdd106d5
(svn r9713) [NoAI] -Sync with trunk (r9631:9712).
rubidium
parents:
9574
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; |
9476 | 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 */ |