src/bridge_map.h
changeset 6123 04eb770ec17e
parent 5596 5bf7128140a0
child 6160 fa42299e967e
equal deleted inserted replaced
6122:3359af5a1f54 6123:04eb770ec17e
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** @file bridge_map.h */
     2 
     4 
     3 #ifndef BRIDGE_MAP_H
     5 #ifndef BRIDGE_MAP_H
     4 #define BRIDGE_MAP_H
     6 #define BRIDGE_MAP_H
     5 
     7 
     6 #include "direction.h"
     8 #include "direction.h"
    57 }
    59 }
    58 
    60 
    59 
    61 
    60 /**
    62 /**
    61  * Get the direction pointing onto the bridge
    63  * Get the direction pointing onto the bridge
       
    64  * @param tile The tile to analyze
       
    65  * @return the above mentionned direction
    62  */
    66  */
    63 static inline DiagDirection GetBridgeRampDirection(TileIndex t)
    67 static inline DiagDirection GetBridgeRampDirection(TileIndex t)
    64 {
    68 {
    65 	assert(IsBridgeTile(t));
    69 	assert(IsBridgeTile(t));
    66 	return (DiagDirection)GB(_m[t].m5, 0, 2);
    70 	return (DiagDirection)GB(_m[t].m5, 0, 2);