diff options
Diffstat (limited to '')
| -rw-r--r-- | src/hl2h.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hl2h.cpp b/src/hl2h.cpp index a0e6b53..1460577 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp | |||
| @@ -561,7 +561,8 @@ static void do_move(int seq, float frametime) { | |||
| 561 | cmd->buttons = 0; | 561 | cmd->buttons = 0; |
| 562 | } else { | 562 | } else { |
| 563 | // Movement is allowed while the GUI is open, but not look/attack/use. | 563 | // Movement is allowed while the GUI is open, but not look/attack/use. |
| 564 | cmd->buttons &= (IN_JUMP | IN_DUCK); | 564 | // Keep locomotion buttons (jump, duck, walk) only. |
| 565 | cmd->buttons &= (IN_JUMP | IN_DUCK | IN_SPEED); | ||
| 565 | } | 566 | } |
| 566 | cmd->impulse = 0; | 567 | cmd->impulse = 0; |
| 567 | cmd->weaponselect = 0; | 568 | cmd->weaponselect = 0; |
