Fix compiler warning in last commit

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4982 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Chris Morris 2012-06-05 10:34:00 +00:00
parent 6b3af405e9
commit e245e12df6

View File

@ -2862,7 +2862,7 @@ static NSTimeInterval time_last_frame;
}
if(((mouse_control_on && !mouse_x_axis_map_to_yaw) || numSticks) && !keyboardRollOverride)
{
double stick_roll = max_flight_roll * virtualStick.x;
stick_roll = max_flight_roll * virtualStick.x;
if (flightRoll < stick_roll)
{
[self increase_flight_roll:delta_t*roll_delta];
@ -2912,7 +2912,7 @@ static NSTimeInterval time_last_frame;
}
if(mouse_control_on || (numSticks && !keyboardPitchOverride))
{
double stick_pitch = max_flight_pitch * virtualStick.y;
stick_pitch = max_flight_pitch * virtualStick.y;
if (flightPitch < stick_pitch)
{
[self increase_flight_pitch:delta_t*pitch_delta];
@ -2966,7 +2966,7 @@ static NSTimeInterval time_last_frame;
{
// I think yaw is handled backwards in the code,
// which is why the negative sign is here.
double stick_yaw = max_flight_yaw * (-reqYaw);
stick_yaw = max_flight_yaw * (-reqYaw);
if (flightYaw < stick_yaw)
{
[self increase_flight_yaw:delta_t*yaw_delta];