void_map.h
author peter1138
Mon, 07 Aug 2006 06:21:59 +0000
changeset 4233 5281a2fe51cc
parent 3145 e833d7a78887
child 4666 172a0cdf28a6
permissions -rw-r--r--
(svn r5798) - Fix [r5062]: When expanding a town, the test to check if a tile is a
road depot also excluded all non-road tile types (i.e. bridges/tunnels
with road.) Thanks to Graphite for finding this.
/* $Id$ */

#ifndef VOID_MAP_H
#define VOID_MAP_H

static inline void MakeVoid(TileIndex t)
{
	SetTileType(t, MP_VOID);
	SetTileHeight(t, 0);
	_m[t].m1 = 0;
	_m[t].m2 = 0;
	_m[t].m3 = 0;
	_m[t].m4 = 0;
	_m[t].m5 = 0;
	_m[t].extra = 0;
}

#endif