src/void_map.h
author rubidium
Sun, 15 Apr 2007 00:17:57 +0000
branchnoai
changeset 9598 b73018a5ffc0
parent 9574 698395509d12
child 6308 646711c5feaa
permissions -rw-r--r--
(svn r9631) [NoAI] -Codechange: rewrite the loading in such a manner that the NoAI branch gets savegame compatability for both NoAI branch savegames (from this revision on) as well as trunk savegames up to the revision that NoAI is synched with.
Note: this breaks savegame loading of savegames made with the NoAI branch up to this revision.
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
9574
698395509d12 (svn r9575) [NoAI] -Sync with trunk r9504:9574
glx
parents: 9476
diff changeset
     3
/** @file void_map.h */
698395509d12 (svn r9575) [NoAI] -Sync with trunk r9504:9574
glx
parents: 9476
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
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     8
static inline void MakeVoid(TileIndex t)
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     9
{
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    10
	SetTileType(t, MP_VOID);
3080
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    11
	SetTileHeight(t, 0);
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    12
	_m[t].m1 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    13
	_m[t].m2 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    14
	_m[t].m3 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    15
	_m[t].m4 = 0;
24fc91ae994a (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    16
	_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
    17
	_m[t].m6 = 0;
9476
1d1ed96f32ad (svn r9323) [NoAI] -Sync with trunk r9206:9322
truelight
parents: 5847
diff changeset
    18
	_me[t].m7 = 0;
3075
f0d692c60465 (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    19
}
3145
349b745dfbf4 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
    20
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
    21
#endif /* VOID_MAP_H */