Skip to content

Commit

Permalink
Fix offset aim when using freelook and r_screensize is 8
Browse files Browse the repository at this point in the history
Fixes #836. Thanks @Krypcik13ty!
  • Loading branch information
bradharding committed Aug 21, 2024
1 parent 5b13914 commit bbb2963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void P_SetPlayerSprite(const size_t position, const statenum_t stnum);
// 16 pixels of bob
#define MAXBOB 0x100000
#define MLOOKUNIT 8
#define PLAYERSLOPE(a) ((((a)->lookdir / MLOOKUNIT) << FRACBITS) / (VANILLAWIDTH / 2))
#define PLAYERSLOPE(a) ((((a)->lookdir / MLOOKUNIT) << FRACBITS) / (r_screensize == r_screensize_max ? 140 : 160))

extern bool autousing;
extern int deadlookdir;
Expand Down

0 comments on commit bbb2963

Please sign in to comment.