aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UGraphicClasses.pas6
-rw-r--r--Game/Code/Classes/UJoystick.pas2
2 files changed, 4 insertions, 4 deletions
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