aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes
diff options
context:
space:
mode:
authorf1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-01 01:48:40 +0000
committerf1fth_freed0m <f1fth_freed0m@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-01 01:48:40 +0000
commit26cf54a7af88106fb12326aa92279c362ba0e0c2 (patch)
treeaa10ac1e2c9d99cd2a99b23e1b13f814085ee478 /Game/Code/Classes
parenta6084b6fbc75ac6cb50dae964d34949f79a4be98 (diff)
downloadusdx-26cf54a7af88106fb12326aa92279c362ba0e0c2.tar.gz
usdx-26cf54a7af88106fb12326aa92279c362ba0e0c2.tar.xz
usdx-26cf54a7af88106fb12326aa92279c362ba0e0c2.zip
Replaced GetTickCount with SDL_GetTicks
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@994 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes')
-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