Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/coelckers/gzdoom into tex…
Browse files Browse the repository at this point in the history
…ture_rework
  • Loading branch information
madame-rachelle committed May 19, 2020
2 parents 6e3ec96 + 53ea19c commit 58b3cb0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/common/scripting/core/dictionary.cpp
Expand Up @@ -43,7 +43,7 @@ void Dictionary::Serialize(FSerializer &arc)
Dictionary *pointerToDeserializedDictionary;
arc(key, pointerToDeserializedDictionary);
Map.TransferFrom(pointerToDeserializedDictionary->Map);
delete pointerToDeserializedDictionary;
pointerToDeserializedDictionary->Destroy();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/maploader/polyobjects.cpp
Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion wadsrc/static/zscript/actors/inventory/powerups.zs
Expand Up @@ -356,7 +356,11 @@ class PowerInvulnerable : Powerup
{
return;
}

Owner.bInvulnerable = true;
if (Mode == 'Reflective')
{
Owner.bReflective = true;
}
if (Mode == 'Ghost')
{
if (!Owner.bShadow)
Expand Down
4 changes: 2 additions & 2 deletions wadsrc/static/zscript/actors/shared/camera.zs
Expand Up @@ -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.
Expand Down

0 comments on commit 58b3cb0

Please sign in to comment.