Skip to content

Commit

Permalink
changes suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
khanghugo committed Jul 15, 2024
1 parent 2281caf commit 8c89000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BunnymodXT/modules/ServerDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3503,7 +3503,7 @@ void TriggerTpLandmarkAfter(entvars_t *pev, Vector offset)
{
pev->origin = pev->origin + offset;
// have to offset by some HULL because of origin z diff
const auto is_duck = pev->button & (IN_DUCK) || pev->flags & (FL_DUCKING);
const auto is_duck = pev->bInDuck || pev->flags & (FL_DUCKING);
const Vector VEC_HULL_MIN(-16, -16, -36);
const Vector VEC_DUCK_HULL_MIN(-16, -16, -18);
const auto hull_offset = is_duck ? VEC_DUCK_HULL_MIN : VEC_HULL_MIN;
Expand Down

0 comments on commit 8c89000

Please sign in to comment.