Hack around the qc code to restore its jump sound when using autobunny.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5860 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-05-19 04:49:52 +00:00
parent 2b2e7c76c4
commit e789d4400b

View file

@ -7515,6 +7515,8 @@ if (sv_player->v->health > 0 && before && !after )
else
sv_player->v->watertype = Q1CONTENTS_EMPTY;
if (pmove.jump_held && movevars.autobunny) //make sure the qc thinks we released the button at some point, triggering a new jump sound.
sv_player->v->flags = (int)sv_player->v->flags | FL_JUMPRELEASED;
if (pmove.onground)
{
sv_player->v->flags = (int)sv_player->v->flags | FL_ONGROUND;