equal
deleted
inserted
replaced
871 |
871 |
872 SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); |
872 SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); |
873 |
873 |
874 v = GetVehicle(p1); |
874 v = GetVehicle(p1); |
875 |
875 |
876 if (v->type == 0 || !CheckOwnership(v->owner)) |
876 if (v->type != VEH_Train || !CheckOwnership(v->owner)) |
877 return CMD_ERROR; |
877 return CMD_ERROR; |
878 |
878 |
879 // get first vehicle in chain |
879 // get first vehicle in chain |
880 first = v; |
880 first = v; |
881 if (first->subtype != TS_Front_Engine) { |
881 if (first->subtype != TS_Front_Engine) { |