mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 08:41:59 +00:00
- do not try to load empty BEHAVIOR lumps.
These would otherwise print an error message but there's a lot of maps out there which only have an empty entry to mark the map as Hexen format.
This commit is contained in:
parent
373c59f924
commit
b8e392eaa5
1 changed files with 9 additions and 6 deletions
|
@ -3329,14 +3329,17 @@ void P_LoadReject (MapData * map, bool junk)
|
||||||
//
|
//
|
||||||
// [RH] P_LoadBehavior
|
// [RH] P_LoadBehavior
|
||||||
//
|
//
|
||||||
void P_LoadBehavior (MapData * map)
|
void P_LoadBehavior(MapData * map)
|
||||||
{
|
{
|
||||||
map->Seek(ML_BEHAVIOR);
|
if (map->Size(ML_BEHAVIOR) > 0)
|
||||||
FBehavior::StaticLoadModule (-1, map->file, map->Size(ML_BEHAVIOR));
|
|
||||||
if (!FBehavior::StaticCheckAllGood ())
|
|
||||||
{
|
{
|
||||||
Printf ("ACS scripts unloaded.\n");
|
map->Seek(ML_BEHAVIOR);
|
||||||
FBehavior::StaticUnloadModules ();
|
FBehavior::StaticLoadModule(-1, map->file, map->Size(ML_BEHAVIOR));
|
||||||
|
}
|
||||||
|
if (!FBehavior::StaticCheckAllGood())
|
||||||
|
{
|
||||||
|
Printf("ACS scripts unloaded.\n");
|
||||||
|
FBehavior::StaticUnloadModules();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue