Skip to content

Commit f2bd727

Browse files
author
Kyle
committed
Merge branch 'develop' of https://github.com/flipcoder/microarmy into develop
2 parents 27172e1 + 2cdb90e commit f2bd727

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/Qor

Submodule Qor updated 1 file

src/Game.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,10 @@ void Game :: enter() {
693693
void Game :: logic(Freq::Time t) {
694694
Actuation::logic(t);
695695

696-
if (m_pInput->key(SDLK_ESCAPE))
697-
m_pQor->quit();
696+
if (m_pInput->key(SDLK_ESCAPE).pressed_now()){
697+
m_pQor->change_state("intro");
698+
return;
699+
}
698700

699701
m_pRoot->logic(t);
700702
m_pOrthoRoot->logic(t);

src/Intro.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ void Intro :: enter() {
209209

210210

211211
void Intro :: logic(Freq::Time t) {
212-
if(m_pInput->key(SDLK_ESCAPE))
212+
if(m_pInput->key(SDLK_ESCAPE).pressed_now())
213213
m_pQor->quit();
214214

215215
m_pRoot->logic(t);

0 commit comments

Comments
 (0)