mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 07:23:37 +08:00
Update spaz_node.cc
This commit is contained in:
parent
10dd5d7205
commit
bc16e3d426
@ -1053,7 +1053,10 @@ void SpazNode::SetJumpPressed(bool val) {
|
|||||||
}
|
}
|
||||||
jump_pressed_ = val;
|
jump_pressed_ = val;
|
||||||
if (jump_pressed_) {
|
if (jump_pressed_) {
|
||||||
if (!can_fly_ && !knockout_ && !frozen_) {
|
if (frozen_ || knockout_) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!can_fly_) {
|
||||||
if (SceneSound* sound = GetRandomMedia(jump_sounds_)) {
|
if (SceneSound* sound = GetRandomMedia(jump_sounds_)) {
|
||||||
if (auto* source = g_base->audio->SourceBeginNew()) {
|
if (auto* source = g_base->audio->SourceBeginNew()) {
|
||||||
const dReal* p_top = dGeomGetPosition(body_head_->geom());
|
const dReal* p_top = dGeomGetPosition(body_head_->geom());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user