- Duke fix bad type in shrinker.

We cannot use 'let' here because IsWW2GI is a compiler intrinsic which results in a nullpointer type if true.
This commit is contained in:
Christoph Oelckers 2023-07-22 10:21:35 +02:00
parent 6aa61e72b5
commit 89dfac62a9

View file

@ -7,7 +7,7 @@ class DukeShrinker : DukeActor
if (shooter.extra >= 0) shooter.shade = -96;
if (p != null)
{
let aimed = IsNamWW2GI()? null : shooter.aim(self);
DukeActor aimed = IsNamWW2GI()? null : shooter.aim(self);
if (aimed)
{
double dal = ((aimed.scale.X * aimed.spriteHeight()) * 0.5); // note the incorrect scale this uses!