- Backported GZDoom r1246:

* Fixed possible crash when texture for menu item patch cannot be loaded. (From Alexey's Mac OS X port.)
* Fixed iwadinfo.txt definitions of Hexen and Freedoom demos (also from Alexey's port.)
* Added missing LOF_NOJUMP definition.


SVN r3284 (trunk)
This commit is contained in:
Braden Obrzut 2011-08-23 02:39:20 +00:00
parent edfc16906a
commit eafb9da2c1
3 changed files with 7 additions and 4 deletions

View File

@ -554,6 +554,8 @@ void FListMenuItemPatch::Drawer(bool selected)
int FListMenuItemPatch::GetWidth()
{
return TexMan[mTexture]->GetScaledWidth();
return mTexture.isValid()
? TexMan[mTexture]->GetScaledWidth()
: 0;
}

View File

@ -61,6 +61,7 @@ const int LOF_NOSOUNDCHECK = 2;
const int LOF_DONTCHASEGOAL = 4;
const int LOF_NOSEESOUND = 8;
const int LOF_FULLVOLSEESOUND = 16;
const int LOF_NOJUMP = 32;
// Flags for A_Respawn
const int RSF_FOG = 1;

View File

@ -115,7 +115,7 @@ IWad
Name = "Hexen: Demo Version"
Game = "Hexen"
Config = "Hexen"
Mapinfo = "mapinfo/doom2.txt"
Mapinfo = "mapinfo/hexen.txt"
Compatibility = "Shareware"
MustContain = "TITLE", "MAP01", "WINNOWR"
BannerColors = "f0 f0 f0", "6b 3c 18"
@ -205,7 +205,7 @@ IWad
Autoname = "Freedoom1"
Game = "Doom"
Config = "Doom"
Mapinfo = "mapinfo/doom2.txt"
Mapinfo = "mapinfo/doom1.txt"
MustContain = "E1M1", "FREEDOOM"
BannerColors = "32 54 43", "c6 dc d1"
}