(svn r4374) Never directly commit something you prepared the evening before, mysteriously it will break in the morning, fix r4373

This commit is contained in:
tron
2006-04-12 05:26:36 +00:00
parent 82afa4caf2
commit 4615a26552
3 changed files with 28 additions and 21 deletions

26
road.h Normal file
View File

@@ -0,0 +1,26 @@
/* $Id$ */
#ifndef ROAD_H
#define ROAD_H
typedef enum RoadBits {
ROAD_NW = 1,
ROAD_SW = 2,
ROAD_SE = 4,
ROAD_NE = 8,
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 ROAD_ALL ^ r;
}
static inline RoadBits DiagDirToRoadBits(DiagDirection d)
{
return 1 << (3 ^ d);
}
#endif