tunnel_map.h
author tron
Sat, 24 Jun 2006 09:48:51 +0000
branch0.4
changeset 10045 ed89f9eb128d
parent 10032 fcf09abbde96
child 10050 53795ed4cdaf
permissions -rw-r--r--
(svn r5350) -Backport: r5327
Use DrawFoundation() for houses
-Fix: Some graphical glitches on house tiles with foundations
-Fix: The selection cursor is now aligned with the top of the foundation for house tiles
/* $Id$ */

#ifndef TUNNEL_MAP_H
#define TUNNEL_MAP_H

#include "macros.h"
#include "map.h"


static inline bool IsTunnel(TileIndex t)
{
	assert(IsTileType(t, MP_TUNNELBRIDGE));
	return !HASBIT(_m[t].m5, 7);
}


static inline uint GetTunnelDirection(TileIndex t)
{
	assert(IsTunnelTile(t));
	return (uint)GB(_m[t].m5, 0, 2);
}

#endif