From 09c33d9c26dcdc5ea0beefcaff73bbfe92e4a016 Mon Sep 17 00:00:00 2001 From: Bruno Bianchi Mello Date: Mon, 8 Apr 2019 03:46:09 -0300 Subject: [PATCH] Increased move keys delay on menu + removed HoverButton method from both conditionals --- gaster_fight/player.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gaster_fight/player.cpp b/gaster_fight/player.cpp index 8c5a6b7..0d3819e 100644 --- a/gaster_fight/player.cpp +++ b/gaster_fight/player.cpp @@ -232,10 +232,7 @@ void Player::Update() { this->button_hovered--; } - this->HoverButton(this->button_hovered); - button_hover_move_tick = current_tick + 150; } - else if (sf::Keyboard::isKeyPressed(sf::Keyboard::Right)) { if (this->button_hovered == Button_Type::Mercy_Button) @@ -246,9 +243,9 @@ void Player::Update() { this->button_hovered++; } - this->HoverButton(this->button_hovered); - button_hover_move_tick = current_tick + 150; } + this->HoverButton(this->button_hovered); + button_hover_move_tick = current_tick + 200; } if (sf::Keyboard::isKeyPressed(sf::Keyboard::Z))