Changeset - r28804:da52f73e975a
[Not reviewed]
master
0 1 0
SamuXarick - 9 months ago 2024-02-23 13:08:16
43006711+SamuXarick@users.noreply.github.com
Fix #10490: Allow ships to exit depots if another is not moving at the exit point (#12161)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/ship_cmd.cpp
Show inline comments
 
@@ -361,17 +361,17 @@ void Ship::UpdateDeltaXY()
 
		this->x_offs -= this->x_pos - this->rotation_x_pos;
 
		this->y_offs -= this->y_pos - this->rotation_y_pos;
 
	}
 
}
 

	
 
/**
 
 * Test-procedure for HasVehicleOnPos to check for any ships which are visible and not stopped by the player.
 
 * Test-procedure for HasVehicleOnPos to check for any ships which are moving.
 
 */
 
static Vehicle *EnsureNoMovingShipProc(Vehicle *v, void *)
 
{
 
	return v->type == VEH_SHIP && (v->vehstatus & (VS_HIDDEN | VS_STOPPED)) == 0 ? v : nullptr;
 
	return v->type == VEH_SHIP && v->cur_speed != 0 ? v : nullptr;
 
}
 

	
 
static bool CheckReverseShip(const Ship *v, Trackdir *trackdir = nullptr)
 
{
 
	/* Ask pathfinder for best direction */
 
	bool reverse = false;
0 comments (0 inline, 0 general)