Fix wrong assert
authorunc0rr
Sat, 10 Jan 2009 23:28:18 +0000
changeset 1640 31cf38df07ef
parent 1639 89b536a3cf3c
child 1641 70d9945ae4f9
Fix wrong assert
hedgewars/uFloat.pas
--- a/hedgewars/uFloat.pas	Sat Jan 10 22:50:54 2009 +0000
+++ b/hedgewars/uFloat.pas	Sat Jan 10 23:28:18 2009 +0000
@@ -335,7 +335,7 @@
 function AngleSin(const Angle: Longword): hwFloat;
 begin
 {$IFDEF DEBUGFILE}
-TryDo((Angle >= 0) and (Angle < 2048), 'Sin param exceeds limits', true);
+TryDo((Angle >= 0) and (Angle <= 2048), 'Sin param exceeds limits', true);
 {$ENDIF}
 AngleSin.isNegative:= false;
 if Angle < 1024 then AngleSin.QWordValue:= SinTable[Angle]
@@ -345,7 +345,7 @@
 function AngleCos(const Angle: Longword): hwFloat;
 begin
 {$IFDEF DEBUGFILE}
-TryDo((Angle >= 0) and (Angle < 2048), 'Cos param exceeds limits', true);
+TryDo((Angle >= 0) and (Angle <= 2048), 'Cos param exceeds limits', true);
 {$ENDIF}
 AngleCos.isNegative:= Angle > 1024;
 if Angle < 1024 then AngleCos.QWordValue:= SinTable[1024 - Angle]