- some cleanup on P_RailAttack plus a bit of parameter floatification in thingdef_codeptr.cpp

This commit is contained in:
Christoph Oelckers 2016-03-25 00:59:14 +01:00
commit f76524f459
5 changed files with 126 additions and 93 deletions

View file

@ -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;
}