Skip to content

Commit

Permalink
Fix comp_longautoaim doubling BFG-tracer range
Browse files Browse the repository at this point in the history
Additionally, some reformatting.
  • Loading branch information
MrAlaux committed Oct 29, 2024
1 parent bc90bf9 commit bbd6e8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ None.
## Bug Fixes

- **Desync involving lost-soul charge attack**
- **_Double autoaim range_ setting doubling range of BFG tracers**
2 changes: 1 addition & 1 deletion src/m_cheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ struct cheat_s cheat[] = {
{cheat_noclip} },

// [Nugget] Change to just "fps"
{"fps", NULL, always,
{"fps", NULL, always,
{cheat_showfps} },

// [Nugget] /---------------------------------------------------------------
Expand Down
5 changes: 2 additions & 3 deletions src/p_pspr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1265,11 +1265,10 @@ void A_BFGSpray(mobj_t *mo)
// mo->target is the originator (player) of the missile

// killough 8/2/98: make autoaiming prefer enemies
// [Nugget] Double Autoaim range
if (demo_version < DV_MBF ||
(P_AimLineAttack(mo->target, an, 16*64*FRACUNIT * NOTCASUALPLAY(comp_longautoaim+1), MF_FRIEND),
(P_AimLineAttack(mo->target, an, 16*64*FRACUNIT, MF_FRIEND),
!linetarget))
P_AimLineAttack(mo->target, an, 16*64*FRACUNIT * NOTCASUALPLAY(comp_longautoaim+1), 0);
P_AimLineAttack(mo->target, an, 16*64*FRACUNIT, 0);

// [Nugget] Hitscan trails
if (P_GetShowHitscanTrails() == 2)
Expand Down

0 comments on commit bbd6e8f

Please sign in to comment.