void_map.h
author bjarni
Wed, 04 Oct 2006 19:15:25 +0000
changeset 4728 d4426f6c6191
parent 4666 172a0cdf28a6
permissions -rw-r--r--
(svn r6640) -Fix: [autoreplace] autoreplace can now use the money for selling the old vehicle to build the new one
Say we got 40k for selling the old one and the new one costs 60k, then the player only needs 20k to replace

The new engine is still built before selling the old one for various reasons, but now the player gets a loan
of the sell value, which is always repaid when replace fails or the old engine is sold. The player will never notice this loan.
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
3145
e833d7a78887 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     3
#ifndef VOID_MAP_H
e833d7a78887 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     4
#define VOID_MAP_H
e833d7a78887 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
     5
3075
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     6
static inline void MakeVoid(TileIndex t)
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     7
{
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
     8
	SetTileType(t, MP_VOID);
3080
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
     9
	SetTileHeight(t, 0);
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    10
	_m[t].m1 = 0;
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    11
	_m[t].m2 = 0;
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    12
	_m[t].m3 = 0;
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    13
	_m[t].m4 = 0;
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    14
	_m[t].m5 = 0;
ab1fdf87033b (svn r3669) Really wipe all data when making a void tile
tron
parents: 3075
diff changeset
    15
	_m[t].extra = 0;
3075
fd64f71655eb (svn r3664) Add a function to turn a tile into a void tile
tron
parents:
diff changeset
    16
}
3145
e833d7a78887 (svn r3765) Fix some naming glitches in r3763 and add missing svn properties
tron
parents: 3144
diff changeset
    17
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
    18
#endif /* VOID_MAP_H */