* Get the first part of an articulated engine. * @return First part of the engine. */
| 949 | * @return First part of the engine. |
| 950 | */ |
| 951 | inline Vehicle *GetFirstEnginePart() |
| 952 | { |
| 953 | Vehicle *v = this; |
| 954 | while (v->IsArticulatedPart()) v = v->Previous(); |
| 955 | return v; |
| 956 | } |
| 957 | |
| 958 | /** |
| 959 | * Get the first part of an articulated engine. |
no test coverage detected