File diff r28803:93db387017f6 → r28804:da52f73e975a
src/ship_cmd.cpp
Show inline comments
 
@@ -364,11 +364,11 @@ void Ship::UpdateDeltaXY()
 
}
 

	
 
/**
 
 * 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)