mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
- Added a NULL screen check when detaching HUD messages.
SVN r1722 (trunk)
This commit is contained in:
parent
9a16e4b6ea
commit
aaf19b9127
2 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
July 16, 2009
|
||||
- Added a NULL screen check when detaching HUD messages.
|
||||
- Added HotWax's A_SetArg.
|
||||
- Gez's patch for more A_WeaponReady flags:
|
||||
* WRF_NOBOB (1): Weapon won't bob
|
||||
|
|
|
@ -381,8 +381,11 @@ DHUDMessage *DBaseStatusBar::DetachMessage (DHUDMessage *msg)
|
|||
*prev = probe->Next;
|
||||
probe->Next = NULL;
|
||||
// Redraw the status bar in case it was covered
|
||||
if (screen != NULL)
|
||||
{
|
||||
SB_state = screen->GetPageCount();
|
||||
}
|
||||
}
|
||||
return probe;
|
||||
}
|
||||
|
||||
|
@ -401,8 +404,11 @@ DHUDMessage *DBaseStatusBar::DetachMessage (DWORD id)
|
|||
*prev = probe->Next;
|
||||
probe->Next = NULL;
|
||||
// Redraw the status bar in case it was covered
|
||||
if (screen != NULL)
|
||||
{
|
||||
SB_state = screen->GetPageCount();
|
||||
}
|
||||
}
|
||||
return probe;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue