mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 05:15:10 +00:00
when one change the current scene, menu controllable system update current button to use
This commit is contained in:
@@ -40,7 +40,9 @@ namespace BBM
|
||||
this->_now = lastTick;
|
||||
|
||||
move = controllable.move;
|
||||
select = controllable.bomb;
|
||||
select = controllable.jump;
|
||||
if (currentButton && currentButton->_scene.getID() != wal.scene->getID())
|
||||
currentButton = nullptr;
|
||||
if (currentButton == nullptr && buttons.size())
|
||||
currentButton = &(**buttons.begin());
|
||||
this->updateCurrentButton();
|
||||
|
||||
Reference in New Issue
Block a user