train_cmd.c
changeset 4519 1437b1e7416c
parent 4510 071bca98c577
child 4526 77ef74d28e76
--- a/train_cmd.c	Sat Sep 02 08:14:16 2006 +0000
+++ b/train_cmd.c	Sat Sep 02 09:35:03 2006 +0000
@@ -1948,7 +1948,7 @@
 	if (v->vehstatus & VS_CRASHED) return CMD_ERROR;
 
 	if (v->current_order.type == OT_GOTO_DEPOT) {
-		if ((p2 & DEPOT_SERVICE) == (bool)HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) {
+		if (!!(p2 & DEPOT_SERVICE) == HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) {
 			/* We called with a different DEPOT_SERVICE setting.
 			* Now we change the setting to apply the new one and let the vehicle head for the same depot.
 			* Note: the if is (true for requesting service == true for ordered to stop in depot)          */