Changeset - r8246:9ef58d195850
[Not reviewed]
master
0 1 0
smatz - 17 years ago 2008-01-10 22:46:04
smatz@openttd.org
(svn r11810) -Fix (r11802): reset sets when leaving prematurely
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/signal.cpp
Show inline comments
 
@@ -527,13 +527,16 @@ static bool UpdateSignalsInBuffer()
 
		if (first) {
 
			first = false;
 
			state = (flags & SF_TRAIN) || (flags & SF_EXIT && !(flags & SF_GREEN)) || (flags & SF_FULL); // true iff train CAN'T leave the depot
 
		}
 

	
 
		/* do not do anything when some buffer was full */
 
		if (flags & SF_FULL) break;
 
		if (flags & SF_FULL) {
 
			ResetSets(); // free all sets
 
			break;
 
		}
 

	
 
		UpdateSignalsAroundSegment(flags);
 
	}
 

	
 
	return state;
 
}
0 comments (0 inline, 0 general)