repo.or.cz
/
openttd
/
fttd.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
Improve return value of UpdateSignalsInBuffer
2013-10-22
cir
d
an
Imp
r
ove return value of Upd
a
teSignalsInBu
f
f
er
commit
|
commitdiff
|
tree
2013-10-22
cirdan
R
e
work Sm
a
llSe
t
in
s
i
gn
a
l
.
cpp
commit
|
commitdiff
|
tree
2013-10-22
c
i
r
d
an
Remo
v
e
d
u
plicate da
t
a in AddTr
a
ckToSignalBuf
f
e
r
commit
|
commitdiff
|
tree
2013-10-22
cirdan
R
e
name
a
variable an
d
change it
s
meaning i
n
ExploreSegment
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Add ext
r
a checks in
E
xploreSegment
commit
|
commitdiff
|
tree
2013-10-22
cirdan
I
nline Chec
k
AddToTodo
S
et into its only caller in signal
.
cpp
commit
|
commitdiff
|
tree
2013-10-22
ci
r
dan
Allow
t
o build exte
n
d
ed
road
bridges over
existing
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Allow to b
u
ild exte
n
ded
r
oad bridge
s
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Allow to remove road p
i
e
c
es fr
o
m b
r
idge
h
eads
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Make the pathfin
d
e
r cos
t
function awa
r
e of extended
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Make DrawBridge
M
iddl
e
aware of extended
r
oad bridges
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Make initial infrastruc
t
ure co
u
nt
a
ware
of exte
n
ded
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cirdan
M
ake several tile procs a
w
are
of extended road bridges
commit
|
commitdiff
|
tree
2013-10-22
cir
d
an
New function to check f
o
r val
i
d roadbit
s
for a road
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New fu
n
c
t
ion to
c
heck for extended road bridges
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New func
t
ion ClearR
o
adType
t
o clear a roadt
y
pe from
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
c
irdan
Store
track lay
o
u
t
for
r
o
ad
br
i
dgehe
a
ds
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Split
CmdBuildRoad in
t
o per-tiletype functions
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
S
p
lit RemoveRoa
d
into per-tilety
p
e functi
o
ns
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Rewo
r
k
C
heckRoadSlop
e
not to h
a
ve an i
n
/out parameter
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
R
ename a
p
arameter in
GetAn
y
RoadBits
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Mo
v
e road bri
d
g
e map functi
o
ns
int
o
r
o
ad_m
a
p
.
h
commit
|
commitdiff
|
tree
2013-10-22
cird
a
n
Move br
i
d
ge head
map accessors
i
nto tile_map
.
h
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Have
the si
g
nal
m
a
p function
s
che
c
k
for the rig
h
t
t
i
le
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
c
irdan
U
se PFP
o
s in NP
F
Foll
o
wTrack
commit
|
commitdiff
|
tree
2013-10-22
ci
r
dan
R
e
do
a
condit
i
ona
l
in N
P
FFollowTrack
commit
|
commitdiff
|
tree
2013-10-22
ci
r
dan
Remove
now
u
nused PFP
o
s::Set
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Use PF
P
os in CYapfRail
N
odeT::SetLastTileTrackdir
commit
|
commitdiff
|
tree
2013-10-22
cirdan
A
s
s
e
rt
that we can back
ou
t
in
Exten
d
Tra
i
nReservation
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Use PFPo
s
in CheckShi
p
Reverse
commit
|
commitdiff
|
tree
2013-10-22
cir
d
an
Use PFPos in NPFRouteTo*
functions
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Give
P
BS
T
ileInfo a cons
t
ructor taking a PFP
o
s
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
U
s
e
P
F
P
os in Fo
l
lowReservation
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Rem
o
v
e now unus
e
d Follow
v
ariant
f
rom the t
r
ack fol
l
o
w
er
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Replace GetVehicleTrackdir by GetPos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New function
H
asOnewaySignalBlockingPos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New functions H
a
s
Pb
s
Sign
a
l{Along,Again
s
t}Pos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New function GetSigna
l
StateByPos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New
f
u
n
c
tion GetSignalType that uses PFPos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New fun
c
tions HasSig
n
a
l
{
A
long,Against}Pos
commit
|
commitdiff
|
tree
2013-10-22
ci
r
dan
N
ew file signal_m
a
p
.
h
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Use P
F
Pos in
C
he
c
kW
a
itingPo
s
ition
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New fun
c
tions {Tr
y
Reserve,Unreserve}RailTrac
k
using
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New functi
o
n HasReservedPos
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
Make
S
e
t
R
a
ilStatio
n
PlatformR
e
servation
u
se PFPos
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
Make
C
l
e
a
r
Pat
h
Res
e
rv
a
tion use
P
FP
o
s
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Simplify C
h
ooseShipTrack
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
Us
e
PFPos in YAPF nodes
commit
|
commitdiff
|
tree
2013-10-22
c
irdan
Use PFPos i
n
C
Y
apfOriginT
i
leT
commit
|
commitdiff
|
tree
2013-10-22
cirdan
U
se PFPos in FindNea
r
es
t
Depot
commit
|
commitdiff
|
tree
2013-10-22
ci
r
dan
U
se
P
FPos in CYapfO
r
iginTileTwoWay
T
commit
|
commitdiff
|
tree
2013-10-22
cird
a
n
Use PFPos in Chec
k
ReverseTrain in CYa
p
f
F
ollow
R
a
i
lT
commit
|
commitdiff
|
tree
2013-10-22
cird
a
n
Use PFPos in FindNeares
t
Sa
f
eTile
commit
|
commitdiff
|
tree
2013-10-22
c
i
r
dan
Use PFPos in F
i
n
d
NearestDepotTwoWay
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Simplify
c
all t
o
SetOrigin
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Make t
h
e
NP
F
hash structu
r
e us
e
PFPos as key
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Rework handl
i
n
g
of fail
e
d r
e
servations in CYapfRes
e
r
veTrack
commit
|
commitdiff
|
tree
2013-10-22
cirda
n
M
ake CYapfReserveTrack
u
se
PFPos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Use PFP
o
s in CY
a
pfRa
i
lNodeT::I
t
e
r
ate
T
iles
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Rew
o
rk CYap
f
ReserveTrac
k
::{Reserve,Un
r
eserve}Sin
g
leTra
c
k
commit
|
commitdiff
|
tree
2013-10-22
cirdan
I
n
line Res
e
rve
R
ailStationPl
a
tfo
r
m i
n
to its
on
l
y c
a
ller
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
Add missing
r
eturn st
a
tement in C
Y
apfRe
s
erve
T
r
ack:
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
c
i
r
d
an
Use
PFPos in Cy
a
pfCo
s
tRailT::Si
g
na
l
Cost
commit
|
commitdiff
|
tree
2013-10-22
cird
a
n
Use PFPos
i
n CyapfCos
t
Ra
i
lT:
:
ReservationCost
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Us
e
PFPos in CYapfCost
R
ailT
:
:On
e
Ti
l
eCo
s
t
commit
|
commitdiff
|
tree
2013-10-22
cirdan
U
se PF
P
o
s in
C
YapfCostRa
i
lT::Slo
p
eCost
commit
|
commitdiff
|
tree
2013-10-22
ci
r
dan
Use PFPos in CYap
f
CostR
o
a
d
T::OneTileCost
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
Use PFPo
s
i
n
CYa
p
fCo
s
tRo
a
d
T
:
:
S
lopeCost
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Make PfDetectDestination a
c
c
e
p
t a P
F
Pos ar
g
u
m
ent
commit
|
commitdiff
|
tree
2013-10-22
cirda
n
Use PFPos in NPFRailP
a
t
hCost
commit
|
commitdiff
|
tree
2013-10-22
c
irdan
Make PBSTileInfo u
s
e PFPos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
R
emove unuse
d
functions in
C
Ya
p
fRailSegment and CY
a
pf
R
a
ilS
e
g
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
c
i
r
d
an
Mak
e
CYap
f
CostRailT:
:
TILE
a derived class o
f
PF
P
os
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Rep
l
ace Get
L
astTile/GetLastTrackdir
b
y GetLast
P
o
s i
n
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
c
i
rda
n
M
ake C
Y
apfRailSegment use
P
FPos
commit
|
commitdiff
|
tree
2013-10-22
cird
a
n
Mak
e
CYapfRoadNodeT u
s
e P
F
Pos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Replace
G
etTile/
G
e
tTrackdir by GetPos
i
n CY
a
pfNodeT
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Make CYapfNodeKey a
d
erive
d
c
l
a
s
s
o
f PFPos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Rena
m
e C
Y
apfNod
e
K
ey fields
commit
|
commitdiff
|
tree
2013-10-22
cirdan
New ba
s
e class CYapfNodeKey for CYapfNodeKey{Ex
i
tDir
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Inlin
e
NPFBr
i
d
g
eCost into it
s
only caller
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Make A
y
S
tarNode u
s
e
P
FPos
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Ad
d
FollowNe
x
t
functio
n
to the
t
rack follo
w
er
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
Make the track
f
ollowe
r
ac
c
ept a PFPos argument
commit
|
commitdiff
|
tree
2013-10-22
cirdan
I
mprove Exte
n
dTra
i
nRe
s
ervation documentatio
n
and usage
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Have the tra
c
k follo
w
er autoche
c
k for single-track
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cir
d
an
N
e
w
st
r
uct PFNewPos f
o
r a pathfinder newposition (track
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cirda
n
New struct PFPos for a pa
t
hfi
n
der
position (track and
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cird
a
n
P
r
epare the
pathfinders f
o
r extended bridge heads
commit
|
commitdiff
|
tree
2013-10-22
cird
a
n
Rearrange ExtendTrainReservation
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Unify m_is_* fields in the track follower
commit
|
commitdiff
|
tree
2013-10-22
cirda
n
Reversing n
o
n-tram road v
e
hicle
s
is always
p
os
s
ible
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
c
ir
d
an
N
ew func
t
ion Get
T
rackStatus
T
rackdirBits in the
t
rack
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
c
i
rdan
Handle end of
l
ine con
s
i
s
te
n
tly in the track follower
commit
|
commitdiff
|
tree
2013-10-22
cirdan
Simplify call to T
r
yReverse i
n
t
h
e tr
a
ck follow
e
r
commit
|
commitdiff
|
tree
2013-10-22
ci
r
d
a
n
Remove
unused
c
o
nstructor from t
h
e pathfinder track
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
cir
d
an
Simplify c
o
nstru
c
tion o
f
track
f
ol
l
ower with railtype
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
ci
r
dan
Let the trac
k
follow
e
r handle 90-deg
r
ee t
u
rns
commit
|
commitdiff
|
tree
2013-10-22
cirda
n
Allow the
d
e
fa
u
lt rail tra
c
k
f
o
l
low
e
r
t
o check for
.
.
.
commit
|
commitdiff
|
tree
2013-10-22
c
i
rd
a
n
Rearrange
and rename
the tra
c
k follower typedef
s
commit
|
commitdiff
|
tree
next