mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- 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:
parent
e9acd74157
commit
9a1a90a730
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue