(svn r12581) -Fix (r12580): trains would not stop correctly on intermediate stations when non-stop was not enabled.
authorrubidium
Sat, 05 Apr 2008 19:51:51 +0000
changeset 9329 928920d21bc1
parent 9328 a7ad10a9b0cb
child 9330 828cc0ca9654
(svn r12581) -Fix (r12580): trains would not stop correctly on intermediate stations when non-stop was not enabled.
src/order_cmd.cpp
--- a/src/order_cmd.cpp	Sat Apr 05 15:30:15 2008 +0000
+++ b/src/order_cmd.cpp	Sat Apr 05 19:51:51 2008 +0000
@@ -1429,7 +1429,7 @@
 			type == OT_GOTO_STATION &&            // Do stop only when going to a station
 			/* Finally do stop when the non-stop flag is not set, or when we should stop at
 			 * this station according to the new_nonstop setting. */
-			(!this->flags & OFB_NON_STOP || ((this->dest != station) == _patches.new_nonstop));
+			(!(this->flags & OFB_NON_STOP) || ((this->dest != station) == _patches.new_nonstop));
 }
 
 void InitializeOrders()