Files @ r4844:dcf812ad20ab
Branch filter:

Location: cpp/openttd-patchpack/source/yapf/yapf_common.cpp

Darkvater
(svn r6770) -Codechange: Make the airport checking a bit stricter...fix unnoticed errors:
Commuter (20): invalid use of terminal group designator; since all other options
goto position 2 and no additional blocks are checked, simplify state
Intercontinental (23, 30): no extra states are needed since all options go to
position 70 and 31 unconditionally
Intercontinental (31): invalid use of more-options-to-follow (255)
/* $Id$ */

#include "../stdafx.h"

#include "yapf.hpp"
#include "follow_track.hpp"
#include "yapf_node_rail.hpp"
#include "yapf_costbase.hpp"
#include "yapf_costcache.hpp"

/** translate tileh to the bitset of up-hill trackdirs */
const TrackdirBits CYapfCostBase::c_upwards_slopes[] = {
	TRACKDIR_BIT_NONE                    , // no tileh
	TRACKDIR_BIT_X_SW | TRACKDIR_BIT_Y_NW, // 1
	TRACKDIR_BIT_X_SW | TRACKDIR_BIT_Y_SE, // 2
	TRACKDIR_BIT_X_SW                    , // 3
	TRACKDIR_BIT_X_NE | TRACKDIR_BIT_Y_SE, // 4
	TRACKDIR_BIT_NONE                    , // 5
	TRACKDIR_BIT_Y_SE                    , // 6
	TRACKDIR_BIT_NONE                    , // 7
	TRACKDIR_BIT_X_NE | TRACKDIR_BIT_Y_NW, // 8,
	TRACKDIR_BIT_Y_NW                    , // 9
	TRACKDIR_BIT_NONE                    , //10
	TRACKDIR_BIT_NONE                    , //11,
	TRACKDIR_BIT_X_NE                    , //12
	TRACKDIR_BIT_NONE                    , //13
	TRACKDIR_BIT_NONE                    , //14
	TRACKDIR_BIT_NONE                    , //15
};