author | truelight |
Sat, 07 Jan 2006 10:57:32 +0000 | |
changeset 2833 | 0d394d4365fe |
parent 2832 | acf08469a0c6 |
child 2834 | 6c29ece4f24b |
train_cmd.c | file | annotate | diff | comparison | revisions |
--- a/train_cmd.c Sat Jan 07 10:15:46 2006 +0000 +++ b/train_cmd.c Sat Jan 07 10:57:32 2006 +0000 @@ -1005,7 +1005,9 @@ r = CheckTrainStoppedInDepot(dst_head); if (r < 0) return CMD_ERROR; - num += r; + /* If we move in the same vehicle, it is okay */ + if (dst_head != src_head) + num += r; assert(dst_head->tile == src_head->tile); }