From 26cf54a7af88106fb12326aa92279c362ba0e0c2 Mon Sep 17 00:00:00 2001 From: f1fth_freed0m Date: Tue, 1 Apr 2008 01:48:40 +0000 Subject: Replaced GetTickCount with SDL_GetTicks git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@994 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UGraphicClasses.pas | 6 +++--- Game/Code/Classes/UJoystick.pas | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Game/Code/Classes') diff --git a/Game/Code/Classes/UGraphicClasses.pas b/Game/Code/Classes/UGraphicClasses.pas index 15bd2244..f176d69c 100644 --- a/Game/Code/Classes/UGraphicClasses.pas +++ b/Game/Code/Classes/UGraphicClasses.pas @@ -9,7 +9,7 @@ interface {$I switches.inc} -uses UTexture; +uses UTexture,SDL; const DelayBetweenFrames : Cardinal = 60; type @@ -348,7 +348,7 @@ constructor TEffectManager.Create; var c: Cardinal; begin inherited; - LastTime := GetTickCount; + LastTime := SDL_GetTicks(); for c:=0 to 5 do begin TwinkleArray[c] := 0; @@ -370,7 +370,7 @@ var // DelayBetweenFrames : Cardinal = 100; begin - CurrentTime := GetTickCount; + CurrentTime := SDL_GetTicks(); //Manage particle life if (CurrentTime - LastTime) > DelayBetweenFrames then begin diff --git a/Game/Code/Classes/UJoystick.pas b/Game/Code/Classes/UJoystick.pas index fbbcaebd..486a8a78 100644 --- a/Game/Code/Classes/UJoystick.pas +++ b/Game/Code/Classes/UJoystick.pas @@ -165,7 +165,7 @@ begin end; //Get Tick - Tick := Gettickcount; + Tick := SDL_GetTicks(); //Get CoolieHat if (SDL_JoystickNumHats(SDL_Joy)>=1) then -- cgit v1.2.3