mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
This commit is contained in:
29
yapf/yapf_common.cpp
Normal file
29
yapf/yapf_common.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
/* $Id$ */
|
||||
|
||||
#include "../stdafx.h"
|
||||
|
||||
#include "yapf.hpp"
|
||||
#include "follow_track.hpp"
|
||||
#include "yapf_node_rail.hpp"
|
||||
#include "yapf_costbase.hpp"
|
||||
#include "yapf_costcache.hpp"
|
||||
|
||||
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
|
||||
};
|
||||
|
Reference in New Issue
Block a user