Merge pull request #623 from VinniTR/patch-2

Update spaz_node.cc
This commit is contained in:
Eric Froemling 2023-09-29 17:55:42 -07:00 committed by GitHub
commit db41bb7714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());