Skip to content

Commit

Permalink
Bug fix for Special Abilities (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdarosa2663 authored Sep 20, 2024
1 parent 5986ef0 commit 78f2c86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions props/saber_fett263_buttons.h
Original file line number Diff line number Diff line change
Expand Up @@ -5788,7 +5788,7 @@ SaberFett263Buttons() : PropBase() {}
#endif
// Gesture Controls (not button specific)
case EVENTID(BUTTON_NONE, EVENT_TWIST_RIGHT, MODE_ON):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand All @@ -5809,7 +5809,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_LEFT, MODE_ON):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand All @@ -5831,7 +5831,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_RIGHT, MODE_OFF):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand All @@ -5842,7 +5842,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_LEFT, MODE_OFF):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand Down Expand Up @@ -5921,7 +5921,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_RIGHT, MODE_OFF | BUTTON_POWER):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand Down Expand Up @@ -5954,7 +5954,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_LEFT, MODE_OFF | BUTTON_POWER):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand Down

0 comments on commit 78f2c86

Please sign in to comment.