(svn r11091) -Codechange: Partial rewrite of the road management code of towns, in order to make it more readable and with improved performance. (FS#1161 by skidd13)

This commit is contained in:
belugas
2007-09-12 23:56:21 +00:00
parent 426b18f635
commit 495c07cd08
2 changed files with 198 additions and 197 deletions

View File

@@ -126,7 +126,7 @@ static inline RoadBits ComplementRoadBits(RoadBits r)
*/
static inline RoadBits DiagDirToRoadBits(DiagDirection d)
{
return (RoadBits)(1U << (3 ^ d));
return (RoadBits)(ROAD_NW << (3 ^ d));
}
/**