Revert "editor camera bugfix"

This reverts commit 6f399f3ff9.
This commit is contained in:
Bukz
2023-06-13 05:39:56 -04:00
parent 6f399f3ff9
commit d6e8b2a9a1
2 changed files with 2 additions and 3 deletions
+2 -3
View File
@@ -475,12 +475,11 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
if(editfly) // just apply velocity
{
pl->o.add(d);
Uint8 const* state = SDL_GetKeyboardState(0);
if(pl->jumpnext)
if(pl->jumpnext && !pl->trycrouch)
{
pl->vel.z = 0.5f; // fly directly upwards while holding jump keybinds
}
else if (state[SDL_SCANCODE_LSHIFT] != 0 || state[SDL_SCANCODE_RSHIFT] != 0)
else if (pl->trycrouch && !pl->jumpnext)
{
pl->vel.z = -0.5f; // fly directly down while holding crouch keybinds
}