equal
deleted
inserted
replaced
472 { |
472 { |
473 uint error_str; |
473 uint error_str; |
474 |
474 |
475 if (v == NULL) return; |
475 if (v == NULL) return; |
476 |
476 |
477 if (v->HasFront() && !v->IsPrimaryVehicle()) { |
477 if (!v->IsPrimaryVehicle()) { |
478 v = v->First(); |
478 v = v->First(); |
479 /* Do nothing when clicking on a train in depot with no loc attached */ |
479 /* Do nothing when clicking on a train in depot with no loc attached */ |
480 if (v->type == VEH_TRAIN && !IsFrontEngine(v)) return; |
480 if (v->type == VEH_TRAIN && !IsFrontEngine(v)) return; |
481 } |
481 } |
482 |
482 |