J :
* Fix u32 into JButtons. * Add a few comments. * Remove useless variables.
This commit is contained in:
@@ -30,10 +30,10 @@ void MTGGamePhase::Update(float dt){
|
||||
|
||||
}
|
||||
|
||||
bool MTGGamePhase::CheckUserInput(u32 key){
|
||||
bool MTGGamePhase::CheckUserInput(JButton key){
|
||||
GameObserver * game = GameObserver::GetInstance();
|
||||
if (activeState == INACTIVE){
|
||||
u32 trigger = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_NEXT : JGE_BTN_PREV);
|
||||
JButton trigger = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_NEXT : JGE_BTN_PREV);
|
||||
if ((trigger == key) && game->currentActionPlayer == game->currentlyActing())
|
||||
{
|
||||
activeState = ACTIVE;
|
||||
|
||||
Reference in New Issue
Block a user