Skip to content

Commit

Permalink
Fix|libdoom: st_stuff had a bad merge that resulted in ST_ClosAll bec…
Browse files Browse the repository at this point in the history
…oming HU_WakeWidgets. Reimplemented HU_WakeWidgets and ST_CloseAll
  • Loading branch information
RomanHargrave committed May 15, 2015
1 parent 9ee7cd6 commit ef521ae
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions doomsday/apps/plugins/doom/src/st_stuff.cpp
Expand Up @@ -1016,10 +1016,29 @@ void ST_Shutdown()
}

void HU_WakeWidgets(int localPlayer)
{
if(localPlayer < 0)
{
for(uint i = 0; i < MAXPLAYERS; ++i)
{
HU_WakeWidgets(i);
}
}
else if(localPlayer < MAXPLAYERS)
{
if(players[localPlayer].plr->inGame)
{
ST_Start(localPlayer);
}
}

}

void ST_CloseAll(int localPlayer, dd_bool fast)
{
NetSv_DismissHUDs(localPlayer, true);
ST_AutomapOpen(localPlayer, false, true);

ST_AutomapOpen(localPlayer, false, fast);
}

/// @note May be called prior to HUD init / outside game session.
Expand Down

0 comments on commit ef521ae

Please sign in to comment.