aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-07-08 12:08:51 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-07-08 12:08:51 +0000
commit002bda99cfc259407bd924619302671bc5cd193a (patch)
tree7c4bcf2ed2541081a10aac70d81d5d554ea96de5
parentdd3cc6f8e84f03f626a88741474412d36e4d18ac (diff)
downloadusdx-002bda99cfc259407bd924619302671bc5cd193a.tar.gz
usdx-002bda99cfc259407bd924619302671bc5cd193a.tar.xz
usdx-002bda99cfc259407bd924619302671bc5cd193a.zip
Fixed a bug in UDisplay that causes the game to crash on exit in Dualscreen Mode.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@275 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Menu/UDisplay.pas5
1 files changed, 4 insertions, 1 deletions
diff --git a/Game/Code/Menu/UDisplay.pas b/Game/Code/Menu/UDisplay.pas
index 223a7615..92693a41 100644
--- a/Game/Code/Menu/UDisplay.pas
+++ b/Game/Code/Menu/UDisplay.pas
@@ -244,7 +244,7 @@ begin
- if (myfade > 40) or (not doFade) or (not canFade) then begin // fade out complete...
+ if ((myfade > 40) or (not doFade) or (not canFade)) And (S = 1) then begin // fade out complete...
myFade:=0;
ActualScreen.onHide;
ActualScreen.ShowFinish:=False;
@@ -256,7 +256,10 @@ begin
ActualScreen.ShowFinish := true;
end
else
+ begin
Result:=False;
+ Break;
+ end;
// end of fade mod
end;
end; // if