equal
deleted
inserted
replaced
3105 /** |
3105 /** |
3106 * Deletes/Clears the last wagon of a crashed train. It takes the engine of the |
3106 * Deletes/Clears the last wagon of a crashed train. It takes the engine of the |
3107 * train, then goes to the last wagon and deletes that. Each call to this function |
3107 * train, then goes to the last wagon and deletes that. Each call to this function |
3108 * will remove the last wagon of a crashed train. If this wagon was on a crossing, |
3108 * will remove the last wagon of a crashed train. If this wagon was on a crossing, |
3109 * or inside a tunnel, recalculate the signals as they might need updating |
3109 * or inside a tunnel, recalculate the signals as they might need updating |
3110 * @param v the @Vehicle of which last wagon is to be removed |
3110 * @param v the Vehicle of which last wagon is to be removed |
3111 */ |
3111 */ |
3112 static void DeleteLastWagon(Vehicle *v) |
3112 static void DeleteLastWagon(Vehicle *v) |
3113 { |
3113 { |
3114 /* Go to the last wagon and delete the link pointing there |
3114 /* Go to the last wagon and delete the link pointing there |
3115 * *u is then the one-before-last wagon, and *v the last |
3115 * *u is then the one-before-last wagon, and *v the last |