Merge branch 'master' of https://github.com/coelckers/gzdoom into texture_rework

This commit is contained in:
Rachael Alexanderson 2020-05-18 23:13:37 -04:00
commit 58b3cb0971
4 changed files with 9 additions and 5 deletions

View file

@ -43,7 +43,7 @@ void Dictionary::Serialize(FSerializer &arc)
Dictionary *pointerToDeserializedDictionary;
arc(key, pointerToDeserializedDictionary);
Map.TransferFrom(pointerToDeserializedDictionary->Map);
delete pointerToDeserializedDictionary;
pointerToDeserializedDictionary->Destroy();
}
}

View file

@ -331,7 +331,7 @@ void MapLoader::PO_Init (void)
TArray<FMapThing *> polythings;
for (auto &mthing : MapThingsConverted)
{
if (mthing.EdNum == 0 || mthing.EdNum == -1 || mthing.info == nullptr) continue;
if (mthing.EdNum == 0 || mthing.EdNum == -1 || mthing.info == nullptr || mthing.info->Type != nullptr) continue;
FDoomEdEntry *mentry = mthing.info;
switch (mentry->Special)

View file

@ -356,7 +356,11 @@ class PowerInvulnerable : Powerup
{
return;
}
Owner.bInvulnerable = true;
if (Mode == 'Reflective')
{
Owner.bReflective = true;
}
if (Mode == 'Ghost')
{
if (!Owner.bShadow)

View file

@ -63,14 +63,14 @@ class AimingCamera : SecurityCamera
args[2] = 0;
Super.PostBeginPlay ();
MaxPitchChange = double(changepitch / TICRATE);
MaxPitchChange = double(changepitch) / TICRATE;
Range /= TICRATE;
ActorIterator it = Level.CreateActorIterator(args[3]);
tracer = it.Next ();
if (tracer == NULL)
{
//Printf ("AimingCamera %d: Can't find TID %d\n", tid, args[3]);
console.Printf ("AimingCamera %d: Can't find TID %d\n", tid, args[3]);
}
else
{ // Don't try for a new target upon losing this one.