mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- fixed last commit.
- added more spawn filters. SVN r1192 (trunk)
This commit is contained in:
parent
9df27c7afd
commit
f84ededfba
4 changed files with 9 additions and 4 deletions
|
@ -255,7 +255,7 @@ void FActorInfo::RegisterIDs ()
|
|||
if (gameinfo.gametype == GAME_Chex && DoomEdMap.FindType(DoomEdNum) == NULL &&
|
||||
(GameFilter & GAME_Doom))
|
||||
{
|
||||
DoomEdMap.AddType (DoomEdNum, Class);
|
||||
DoomEdMap.AddType (DoomEdNum, Class, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -554,7 +554,7 @@ FDoomEdMap::~FDoomEdMap()
|
|||
Empty();
|
||||
}
|
||||
|
||||
void FDoomEdMap::AddType (int doomednum, const PClass *type)
|
||||
void FDoomEdMap::AddType (int doomednum, const PClass *type, bool temporary)
|
||||
{
|
||||
unsigned int hash = (unsigned int)doomednum % DOOMED_HASHSIZE;
|
||||
FDoomEdEntry *entry = DoomEdHash[hash];
|
||||
|
@ -569,11 +569,12 @@ void FDoomEdMap::AddType (int doomednum, const PClass *type)
|
|||
entry->DoomEdNum = doomednum;
|
||||
DoomEdHash[hash] = entry;
|
||||
}
|
||||
else
|
||||
else if (!entry->temp)
|
||||
{
|
||||
Printf (PRINT_BOLD, "Warning: %s and %s both have doomednum %d.\n",
|
||||
type->TypeName.GetChars(), entry->Type->TypeName.GetChars(), doomednum);
|
||||
}
|
||||
entry->temp = temporary;
|
||||
entry->Type = type;
|
||||
}
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ public:
|
|||
~FDoomEdMap();
|
||||
|
||||
const PClass *FindType (int doomednum) const;
|
||||
void AddType (int doomednum, const PClass *type);
|
||||
void AddType (int doomednum, const PClass *type, bool temporary = false);
|
||||
void DelType (int doomednum);
|
||||
void Empty ();
|
||||
|
||||
|
@ -246,6 +246,7 @@ private:
|
|||
FDoomEdEntry *HashNext;
|
||||
const PClass *Type;
|
||||
int DoomEdNum;
|
||||
bool temp;
|
||||
};
|
||||
|
||||
static FDoomEdEntry *DoomEdHash[DOOMED_HASHSIZE];
|
||||
|
|
|
@ -46,6 +46,7 @@ ACTOR FogPatchSmall 10001
|
|||
|
||||
ACTOR FogPatchMedium : FogPatchSmall 10002
|
||||
{
|
||||
Game Hexen
|
||||
States
|
||||
{
|
||||
Spawn:
|
||||
|
@ -61,6 +62,7 @@ ACTOR FogPatchMedium : FogPatchSmall 10002
|
|||
|
||||
ACTOR FogPatchLarge : FogPatchMedium 10003
|
||||
{
|
||||
Game Hexen
|
||||
States
|
||||
{
|
||||
Spawn:
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
ACTOR Heresiarch 10080 native
|
||||
{
|
||||
Game Hexen
|
||||
Health 5000
|
||||
Painchance 10
|
||||
Speed 16
|
||||
|
|
Loading…
Reference in a new issue