From: Tobias Markus Date: Mon, 19 Aug 2013 00:57:24 +0000 (+0200) Subject: bug 1001 part: Fix compiler warnings in iSpy X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=878e80043307c0d3c63e1b880090f1558cb855d5;p=supertux.git bug 1001 part: Fix compiler warnings in iSpy --- diff --git a/src/object/ispy.cpp b/src/object/ispy.cpp index dbdce6541..fe6f403f1 100644 --- a/src/object/ispy.cpp +++ b/src/object/ispy.cpp @@ -68,9 +68,9 @@ Ispy::line_intersects_line(Vector line1_start, Vector line1_end, Vector line2_st // normalize to positive numerator if (num < 0) { - num =- num; - den1 =- den1; - den2 =- den2; + num = -num; + den1 = -den1; + den2 = -den2; } // numerator is zero -> Check for parallel or coinciding lines