- some cleanup on P_RailAttack plus a bit of parameter floatification in thingdef_codeptr.cpp
This commit is contained in:
parent
4d22b346f4
commit
f76524f459
5 changed files with 126 additions and 93 deletions
|
|
@ -3009,7 +3009,11 @@ DEFINE_ACTION_FUNCTION(AActor, A_MonsterRail)
|
|||
self->Angles.Yaw += pr_railface.Random2() * 45./256;
|
||||
}
|
||||
|
||||
P_RailAttack (self, self->GetMissileDamage (0, 1), 0);
|
||||
FRailParams p;
|
||||
|
||||
p.source = self;
|
||||
p.damage = self->GetMissileDamage(0, 1);
|
||||
P_RailAttack (&p);
|
||||
self->Angles.Pitch = saved_pitch;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue