File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ class DroneSimulator : public BaseProject {
29
29
TextMaker menuTxt;
30
30
float gameOver = 0 .0f ;
31
31
32
-
33
- bool prevEscPressed = false ;
34
-
35
32
// --- window parameters ---
36
33
float Ar; // aspect ratio
37
34
Original file line number Diff line number Diff line change @@ -589,12 +589,11 @@ void DroneSimulator::updateUniformBuffer(uint32_t currentImage)
589
589
bool bPressed = glfwGetKey (window, GLFW_KEY_B) == GLFW_PRESS;
590
590
bool enterPressed = glfwGetKey (window, GLFW_KEY_ENTER) == GLFW_PRESS;
591
591
592
- bool escJustPressed = escPressed && !prevEscPressed;
593
592
const float DRONE_SCALE = 0 .065f ;
594
593
595
594
// ─── GAME LOGIC (only PLAYING) ────
596
595
if (state == AppState::Playing) {
597
- if (escJustPressed ) {
596
+ if (escPressed ) {
598
597
// ESC pressed: reset game
599
598
menuTxt.removeText (2 );
600
599
menuTxt.removeText (3 );
You can’t perform that action at this time.
0 commit comments