From 88def6f8353564e9c77b1a57269708b926c899f9 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Mon, 3 Mar 2014 17:32:27 +0100 Subject: [PATCH] Fixing compiler warning --- src/object/icecrusher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/icecrusher.cpp b/src/object/icecrusher.cpp index 58f337607..3956eaec9 100644 --- a/src/object/icecrusher.cpp +++ b/src/object/icecrusher.cpp @@ -287,7 +287,7 @@ IceCrusher::eye_position(bool right) const float displacement_y = player_focus_y - crusher_origin_y; const float displacement_mag = pow(pow(displacement_x, 2.0) + pow(displacement_y, 2.0), 0.5); // Determine weighting for eye displacement along x given icecrusher eye shape - int weight_x = sprite->get_width()/64 * ((displacement_x > 0) == right) ? 1 : 4; + int weight_x = sprite->get_width()/64 * (((displacement_x > 0) == right) ? 1 : 4); int weight_y = sprite->get_width()/64 * 2; return Vector(displacement_x/displacement_mag * weight_x, displacement_y/displacement_mag * weight_y - weight_y); -- 2.11.0