aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreddie-0815 <eddie-0815@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-01-09 21:04:41 +0000
committereddie-0815 <eddie-0815@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-01-09 21:04:41 +0000
commit77f3d0dcae9fe77a8d3cef1825756741b6d269ee (patch)
tree1034613e68f653674aa3d1c1ff76dd67c9083637
parent26dc68d67f6906c186912fbf00962f4aebe17d94 (diff)
downloadusdx-77f3d0dcae9fe77a8d3cef1825756741b6d269ee.tar.gz
usdx-77f3d0dcae9fe77a8d3cef1825756741b6d269ee.tar.xz
usdx-77f3d0dcae9fe77a8d3cef1825756741b6d269ee.zip
The constant NAN causes a range check error on OS X. I've set LastDrawBeat to 0 - would this be OK for all Platforms?
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@763 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--Game/Code/Classes/ULyrics.pas10
1 files changed, 10 insertions, 0 deletions
diff --git a/Game/Code/Classes/ULyrics.pas b/Game/Code/Classes/ULyrics.pas
index 0d709eef..165084a8 100644
--- a/Game/Code/Classes/ULyrics.pas
+++ b/Game/Code/Classes/ULyrics.pas
@@ -153,7 +153,12 @@ begin
PQueueLine:=@QueueLine;
UseLinearFilter := True;
+ {$IFDEF DARWIN}
+ // eddie: Getting range check error with NAN on OS X:
+ LastDrawBeat:=0;
+ {$ELSE}
LastDrawBeat:=NAN;
+ {$ENDIF}
end;
Constructor TLyricEngine.Create(ULX,ULY,ULW,ULS,LLX,LLY,LLW,LLS:Real);
@@ -197,7 +202,12 @@ begin
PUpperline:=@UpperLine;
PLowerLine:=@LowerLine;
PQueueLine:=@QueueLine;
+ {$IFDEF DARWIN}
+ // eddie: Getting range check error with NAN on OS X:
+ LastDrawBeat:=0;
+ {$ELSE}
LastDrawBeat:=NAN;
+ {$ENDIF}
end;