mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-16 07:21:28 +00:00
- implement 'loadacs' option for MAPINFO.
This commit is contained in:
parent
1e193206bf
commit
39cdb7cf30
2 changed files with 16 additions and 1 deletions
13
src/edf.cpp
13
src/edf.cpp
|
@ -47,6 +47,7 @@
|
||||||
#include "p_tags.h"
|
#include "p_tags.h"
|
||||||
#include "p_terrain.h"
|
#include "p_terrain.h"
|
||||||
#include "v_palette.h"
|
#include "v_palette.h"
|
||||||
|
#include "p_acs.h"
|
||||||
#include "r_data/colormaps.h"
|
#include "r_data/colormaps.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -770,4 +771,14 @@ void ProcessEDFSectors()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete[] edfsectorrecord;
|
delete[] edfsectorrecord;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LoadMapinfoACSLump()
|
||||||
|
{
|
||||||
|
FEdfOptions *opt = level.info->GetOptData<FEdfOptions>("EDF", false);
|
||||||
|
if (opt != NULL)
|
||||||
|
{
|
||||||
|
int lump = Wads.CheckNumForName(opt->acsName);
|
||||||
|
if (lump >= 0) FBehavior::StaticLoadModule(lump);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -3702,6 +3702,10 @@ void P_SetupLevel (const char *lumpname, int position)
|
||||||
}
|
}
|
||||||
|
|
||||||
FBehavior::StaticLoadDefaultModules ();
|
FBehavior::StaticLoadDefaultModules ();
|
||||||
|
#ifndef NO_EDF
|
||||||
|
LoadMapinfoACSLump();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
P_LoadStrifeConversations (map, lumpname);
|
P_LoadStrifeConversations (map, lumpname);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue