mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-30 11:13:17 +08:00
commit
db41bb7714
@ -1053,7 +1053,10 @@ void SpazNode::SetJumpPressed(bool val) {
|
||||
}
|
||||
jump_pressed_ = val;
|
||||
if (jump_pressed_) {
|
||||
if (!can_fly_ && !knockout_ && !frozen_) {
|
||||
if (frozen_ || knockout_) {
|
||||
return;
|
||||
}
|
||||
if (!can_fly_) {
|
||||
if (SceneSound* sound = GetRandomMedia(jump_sounds_)) {
|
||||
if (auto* source = g_base->audio->SourceBeginNew()) {
|
||||
const dReal* p_top = dGeomGetPosition(body_head_->geom());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user