diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-09 18:38:23 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-09 18:38:23 +0000 |
commit | 417b8200e765f849e836667d717c4af6e15fcbf6 (patch) | |
tree | a40a295641b9f4572d3f0cccd215cb08c1ff202a /Game/Code/Screens/UScreenCredits.pas | |
parent | ceda196bb89e55fc4163c932e92803c16916060b (diff) | |
download | usdx-417b8200e765f849e836667d717c4af6e15fcbf6.tar.gz usdx-417b8200e765f849e836667d717c4af6e15fcbf6.tar.xz usdx-417b8200e765f849e836667d717c4af6e15fcbf6.zip |
Fixed some warnings ("missing result-values", "0 instead of nil", "comparison is always true", "range check errors")
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@943 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Screens/UScreenCredits.pas | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Game/Code/Screens/UScreenCredits.pas b/Game/Code/Screens/UScreenCredits.pas index 0daedf4d..254f9357 100644 --- a/Game/Code/Screens/UScreenCredits.pas +++ b/Game/Code/Screens/UScreenCredits.pas @@ -1218,11 +1218,16 @@ Log.LogStatus('',' JB-4'); else
f:=0;
- if CTime >=STime+Delay-10 then if CTime <=STime+Delay then begin
+ if (CTime >= STime+Delay-10) and (CTime <= STime+Delay) then
+ begin
j:=CTime-(STime+Delay-10);
g:=32.6*j;
- end else
+ end
+ else
+ begin
g:=0;
+ end;
+
glBindTexture(GL_TEXTURE_2D, credits_whiteshark.TexNum);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
|