(svn r3877) Add functions to turn a tile into a rail/road bridge ramp/middle part

This commit is contained in:
tron
2006-03-15 07:10:41 +00:00
parent decf3c42f8
commit 251242165c
3 changed files with 72 additions and 22 deletions

View File

@@ -102,4 +102,14 @@ static inline Axis DiagDirToAxis(DiagDirection d)
return (Axis)(d & 1);
}
/*
* Converts an Axis to a DiagDirection
* Points always in the positive direction, i.e. S[EW]
*/
static inline DiagDirection AxisToDiagDir(Axis a)
{
return (DiagDirection)(2 - a);
}
#endif