From bab944ec30e19b314a8c8d1c118cb1713ad8b32b Mon Sep 17 00:00:00 2001 From: Matthieu Milan Date: Thu, 30 Jan 2020 17:37:36 +0100 Subject: [PATCH] Fix level increment --- CMakeLists.txt | 2 +- game.cpp | 2 +- game.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ad4807..a0739b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ if(SWITCH_LIBNX) add_definitions(-D__SWITCH__) add_custom_target(${CMAKE_PROJECT_NAME}.nro DEPENDS ${CMAKE_PROJECT_NAME} - COMMAND nacptool --create "Heart of Darkness" "cyx, usineur" "0.2.7" ${CMAKE_PROJECT_NAME}.nacp + COMMAND nacptool --create "Heart of Darkness" "cyx, usineur" "0.2.8" ${CMAKE_PROJECT_NAME}.nacp COMMAND elf2nro ${CMAKE_PROJECT_NAME} ${CMAKE_PROJECT_NAME}.nro --icon=${CMAKE_SOURCE_DIR}/3p/res/icon.jpg --nacp=${CMAKE_PROJECT_NAME}.nacp ) add_custom_target(nxlink diff --git a/game.cpp b/game.cpp index 23a77cc..99d32e0 100644 --- a/game.cpp +++ b/game.cpp @@ -2090,7 +2090,7 @@ void Game::drawScreen() { } } -void Game::mainLoop(int level, int checkpoint, bool levelChanged) { +void Game::mainLoop(int &level, int &checkpoint, bool levelChanged) { if (_loadingScreenEnabled) { displayLoadingScreen(); } diff --git a/game.h b/game.h index d1a3121..5ce2b64 100644 --- a/game.h +++ b/game.h @@ -243,7 +243,7 @@ struct Game { uint32_t benchmarkCpu(); // game.cpp - void mainLoop(int level, int checkpoint, bool levelChanged); + void mainLoop(int &level, int &checkpoint, bool levelChanged); void mixAudio(int16_t *buf, int len); void resetShootLvlObjectDataTable(); void clearShootLvlObjectData(LvlObject *ptr);