From 330cb9eacb41765bc4075c23670926c7524ad1d2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 29 Apr 2023 11:31:05 +0200 Subject: [PATCH] - fix two errors. --- wadsrc/static/zscript/games/duke/actors/dukecstuff/rat.zs | 2 +- wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/games/duke/actors/dukecstuff/rat.zs b/wadsrc/static/zscript/games/duke/actors/dukecstuff/rat.zs index 39debbad0..51efc37de 100644 --- a/wadsrc/static/zscript/games/duke/actors/dukecstuff/rat.zs +++ b/wadsrc/static/zscript/games/duke/actors/dukecstuff/rat.zs @@ -21,7 +21,7 @@ class DukeRat : DukeActor { self.timetosleep = 0; self.ChangeStat(STAT_ACTOR); - if (Raze.isRR()) self.shade = self.ownerActor.shade; + if (isRR()) self.shade = self.ownerActor.shade; } else self.ChangeStat(STAT_ZOMBIEACTOR); self. clipdist = 10; diff --git a/wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs b/wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs index dcc513cc5..dd2f152f4 100644 --- a/wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs +++ b/wadsrc/static/zscript/games/duke/actors/dukeweapons/shrinker.zs @@ -7,7 +7,7 @@ class DukeShrinker : DukeActor if (shooter.extra >= 0) shooter.shade = -96; if (p != null) { - let aimed = Raze.IsNamWW2GI()? null : shooter.aim(self); + let aimed = IsNamWW2GI()? null : shooter.aim(self); if (aimed) { double dal = ((aimed.scale.X * aimed.spriteHeight()) * 0.5); // note the incorrect scale this uses!