mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-22 08:51:26 +00:00
- 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:
parent
6aa61e72b5
commit
89dfac62a9
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue