Files
@ r4381:c965d1f3016a
Branch filter:
Location: cpp/openttd-patchpack/source/road.h - annotation
r4381:c965d1f3016a
433 B
text/x-c
(svn r6131) -Codechange : Complete all missing _ttdpatch_flags entries
-Feature : both unifiedmaglevmode are now set.
Maglev and monorail are not allowed to run on each other tracks and will not be.
Setting those flags will allow grfsets as the Norvegian one to be loaded
-Codechange : link the TTDPatch's irregularstations with OTTD's nonuniform_stations
-Codechange : Reformat the whole array (thanks Rubidium, it sure looks better now)
-Feature : both unifiedmaglevmode are now set.
Maglev and monorail are not allowed to run on each other tracks and will not be.
Setting those flags will allow grfsets as the Norvegian one to be loaded
-Codechange : link the TTDPatch's irregularstations with OTTD's nonuniform_stations
-Codechange : Reformat the whole array (thanks Rubidium, it sure looks better now)
r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3795:4a0aa8790084 r3795:4a0aa8790084 r3795:4a0aa8790084 r3795:4a0aa8790084 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3900:1c2675abec23 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 r3900:1c2675abec23 r3518:098862dff341 r3518:098862dff341 r3518:098862dff341 | /* $Id$ */
#ifndef ROAD_H
#define ROAD_H
typedef enum RoadBits {
ROAD_NW = 1U,
ROAD_SW = 2U,
ROAD_SE = 4U,
ROAD_NE = 8U,
ROAD_X = ROAD_SW | ROAD_NE,
ROAD_Y = ROAD_NW | ROAD_SE,
ROAD_ALL = ROAD_X | ROAD_Y
} RoadBits;
static inline RoadBits ComplementRoadBits(RoadBits r)
{
return (RoadBits)(ROAD_ALL ^ r);
}
static inline RoadBits DiagDirToRoadBits(DiagDirection d)
{
return (RoadBits)(1U << (3 ^ d));
}
#endif
|