Skip to content

Commit

Permalink
Move the DXRBigMessage check out of the DXRBase logic and specifically
Browse files Browse the repository at this point in the history
into the BingoWinScreen checks
  • Loading branch information
theastropath committed Sep 10, 2023
1 parent 9e6c428 commit 678c272
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
7 changes: 0 additions & 7 deletions DXRCore/DeusEx/Classes/DXRBase.uc
Original file line number Diff line number Diff line change
Expand Up @@ -506,13 +506,6 @@ function bool InGame() {
return False;
}

//Consider it in-game if a big message is up...
if (DeusExRootWindow(player().rootWindow).GetTopWindow()!=None){
if (DeusExRootWindow(player().rootWindow).GetTopWindow().IsA('DXRBigMessage')){
return True;
}
}

if (None == DeusExRootWindow(player().rootWindow).hud) {
return False;
}
Expand Down
16 changes: 15 additions & 1 deletion DXRModules/DeusEx/Classes/DXREvents.uc
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,8 @@ function PreTravel()
function BingoWinScreen()
{
local #var(PlayerPawn) p;
local bool showMsg;

p = player();
if ( Level.Netmode == NM_Standalone ) {
//Make it harder to get murdered during the countdown
Expand All @@ -1313,7 +1315,19 @@ function BingoWinScreen()
p.DesiredFlashScale = 0;
p.DesiredFlashFog = vect(0,0,0);

if(InGame()) {
showMsg=False;
if (InGame()){
showMsg=True;
} else {
//Consider it in-game if a big message is up...
if (DeusExRootWindow(p.rootWindow).GetTopWindow()!=None){
if (DeusExRootWindow(p.rootWindow).GetTopWindow().IsA('DXRBigMessage')){
showMsg = True;
}
}
}

if(showMsg) {
p.ShowHud(False);
//Show win message
class'DXRBigMessage'.static.CreateBigMessage(dxr.player,None,"Congratulations! You finished your bingo!","Game ending in "$bingo_win_countdown$" seconds");
Expand Down

0 comments on commit 678c272

Please sign in to comment.