mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +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
|
July 16, 2009
|
||||||
|
- Added a NULL screen check when detaching HUD messages.
|
||||||
- Added HotWax's A_SetArg.
|
- Added HotWax's A_SetArg.
|
||||||
- Gez's patch for more A_WeaponReady flags:
|
- Gez's patch for more A_WeaponReady flags:
|
||||||
* WRF_NOBOB (1): Weapon won't bob
|
* WRF_NOBOB (1): Weapon won't bob
|
||||||
|
|
|
@ -381,7 +381,10 @@ DHUDMessage *DBaseStatusBar::DetachMessage (DHUDMessage *msg)
|
||||||
*prev = probe->Next;
|
*prev = probe->Next;
|
||||||
probe->Next = NULL;
|
probe->Next = NULL;
|
||||||
// Redraw the status bar in case it was covered
|
// Redraw the status bar in case it was covered
|
||||||
SB_state = screen->GetPageCount ();
|
if (screen != NULL)
|
||||||
|
{
|
||||||
|
SB_state = screen->GetPageCount();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return probe;
|
return probe;
|
||||||
}
|
}
|
||||||
|
@ -401,7 +404,10 @@ DHUDMessage *DBaseStatusBar::DetachMessage (DWORD id)
|
||||||
*prev = probe->Next;
|
*prev = probe->Next;
|
||||||
probe->Next = NULL;
|
probe->Next = NULL;
|
||||||
// Redraw the status bar in case it was covered
|
// Redraw the status bar in case it was covered
|
||||||
SB_state = screen->GetPageCount ();
|
if (screen != NULL)
|
||||||
|
{
|
||||||
|
SB_state = screen->GetPageCount();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return probe;
|
return probe;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue