diff options
author | jaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-10-02 04:39:22 +0000 |
---|---|---|
committer | jaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-10-02 04:39:22 +0000 |
commit | b29759fbfdd8a013e3d0a85b578934ebec028c41 (patch) | |
tree | db75c93eea11c5e9f7d477be4f94b5dfe7559626 /Game/Code/Classes/UTime.pas | |
parent | bcf55203a81aef383d0a7123996e872fa3a297dc (diff) | |
download | usdx-b29759fbfdd8a013e3d0a85b578934ebec028c41.tar.gz usdx-b29759fbfdd8a013e3d0a85b578934ebec028c41.tar.xz usdx-b29759fbfdd8a013e3d0a85b578934ebec028c41.zip |
Fixed linux compilation.
Linux is now running in the main loop fine.
* no audio playback or input yet...
* Timing hack inplace.. that must be replace
* bunch of textures not working..
however the play screen is looking similar to windows builds.
I hope this dosnt break windows builds to much.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@460 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Classes/UTime.pas | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Game/Code/Classes/UTime.pas b/Game/Code/Classes/UTime.pas index 87d4f922..d06628cc 100644 --- a/Game/Code/Classes/UTime.pas +++ b/Game/Code/Classes/UTime.pas @@ -69,7 +69,11 @@ begin TimeNew := CurrentSec100OfDay(); // TODO - JB_Linux will prob need looking at {$ENDIF} - TimeSkip := (TimeNew-TimeOld)/TimeFreq; + if ( TimeNew-TimeOld > 0 ) AND + ( TimeFreq > 0 ) THEN + begin + TimeSkip := (TimeNew-TimeOld)/TimeFreq; + end; end; procedure CountMidTime; |