| 856 | } |
| 857 | |
| 858 | void jumpn(bool on) |
| 859 | { |
| 860 | static bool wason = false; |
| 861 | player1->jumpnext = on && !wason && !player1->crouching && !intermission && !player1->isspectating() && !ispaused; |
| 862 | wason = on; |
| 863 | if(player1->isspectating()) |
| 864 | { |
| 865 | if(lastmillis - player1->lastdeath > 1000 && on) togglespect(); |
| 866 | } |
| 867 | } |
| 868 | |
| 869 | void updatecrouch(playerent *p, bool on) |
| 870 | { |
nothing calls this directly
no test coverage detected