Skip to content

Commit

Permalink
online bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko committed Jul 9, 2024
1 parent 9d1fae3 commit f446554
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions decompile/General/MAIN/MainFrame_RenderFrame.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,9 +1479,7 @@ void RenderAllLevelGeometry(struct GameTracker* gGT)

void MultiplayerWumpaHUD(struct GameTracker* gGT)
{
if((gGT->hudFlags & 1) == 0) return;
if(gGT->numPlyrCurrGame < 2) return;

// must also work for 1P, or Online breaks
for(int i = 0; i < gGT->numPlyrCurrGame; i++)
{
struct Driver* d = gGT->drivers[i];
Expand All @@ -1498,6 +1496,9 @@ void MultiplayerWumpaHUD(struct GameTracker* gGT)
}
}

if((gGT->hudFlags & 1) == 0) return;
if(gGT->numPlyrCurrGame < 2) return;

#ifndef REBUILD_PS1
UI_RenderFrame_Wumpa3D_2P3P4P(gGT);
#endif
Expand Down

0 comments on commit f446554

Please sign in to comment.