- Duke: fixed mortars not toggling their hittable state depending on player distance.

This is needed to make them shootable from a distance. Somehow these two lines of code had gotten lost during scriptification.
This commit is contained in:
Christoph Oelckers 2022-12-18 09:14:11 +01:00
parent e9acd74157
commit 9a1a90a730

View file

@ -21,6 +21,9 @@ class DukeMortar : DukeActor
[p,xx] = self.findplayer();
if (xx < 1220 / 16.) self.cstat &= ~CSTAT_SPRITE_BLOCK_ALL;
else self.cstat |= CSTAT_SPRITE_BLOCK_ALL;
if (self.temp_data[3] == 0)
{
int j = self.ifhitbyweapon();