- 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

@ -564,7 +564,11 @@ static void FireRailgun(AActor *self, int offset_xy, bool fromweapon)
damage = deathmatch ? 100 : 150;
P_RailAttack (self, damage, offset_xy);
FRailParams p;
p.source = self;
p.damage = damage;
p.offset_xy = offset_xy;
P_RailAttack (&p);
}