1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 11:29:10 +00:00

(svn r13960) -Codechange [YAPP]: Reserve a path when exiting a depot into a PBS block. (michi_cc)

This commit is contained in:
rubidium
2008-08-02 22:55:52 +00:00
parent 4339948b1f
commit 9e91bb4b33
3 changed files with 24 additions and 3 deletions

View File

@@ -541,8 +541,10 @@ static SigSegState UpdateSignalsInBuffer(Owner owner)
if (first) {
first = false;
if ((flags & SF_TRAIN) || (flags & SF_EXIT && !(flags & SF_GREEN)) || (flags & SF_FULL)) {
/* SIGSEG_FREE is set by default */
/* SIGSEG_FREE is set by default */
if (flags & SF_PBS) {
state = SIGSEG_PBS;
} else if (flags & SF_TRAIN || (flags & SF_EXIT && !(flags & SF_GREEN)) || flags & SF_FULL) {
state = SIGSEG_FULL;
}
}