Changeset - r20030:d2dff80f1917
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2013-02-10 21:05:24
frosch@openttd.org
(svn r24987) -Fix: When choosing a train in a depot to attach a newly purchased wagon to, do not consider trains currently moving in and out of the depot.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/train_gui.cpp
Show inline comments
 
@@ -33,8 +33,7 @@ void CcBuildWagon(const CommandCost &res
 
	const Vehicle *found = NULL;
 
	const Train *t;
 
	FOR_ALL_TRAINS(t) {
 
		if (t->IsFrontEngine() && t->tile == tile &&
 
				t->track == TRACK_BIT_DEPOT) {
 
		if (t->IsFrontEngine() && t->tile == tile && t->IsStoppedInDepot()) {
 
			if (found != NULL) return; // must be exactly one.
 
			found = t;
 
		}
0 comments (0 inline, 0 general)