mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 03:12:00 -04:00
Fix P_RadiusAttack dist depending on damage (#1099)
Fix variable "dist" in P_RadiusAttack depending on damage (like vanilla Doom), which causes attack radius to actually depend on damage. Now depends on distance arg (like dsda-doom).
This commit is contained in:
parent
cdb9a57545
commit
51274c1c83
@ -1839,7 +1839,7 @@ boolean PIT_RadiusAttack(mobj_t *thing)
|
||||
|
||||
void P_RadiusAttack(mobj_t *spot, mobj_t *source, int damage, int distance)
|
||||
{
|
||||
fixed_t dist = (damage+MAXRADIUS)<<FRACBITS;
|
||||
fixed_t dist = (distance+MAXRADIUS)<<FRACBITS;
|
||||
int yh = (spot->y + dist - bmaporgy)>>MAPBLOCKSHIFT;
|
||||
int yl = (spot->y - dist - bmaporgy)>>MAPBLOCKSHIFT;
|
||||
int xh = (spot->x + dist - bmaporgx)>>MAPBLOCKSHIFT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user