summaryrefslogtreecommitdiff
path: root/Gameplay.cpp
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-11-05 18:00:57 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2017-11-05 18:00:57 +0100
commit2d04eba931ac84e2f09d3c8391125f8a991ca7d3 (patch)
treee4694bc9ae0072a927b25ef4bade962de822de0d /Gameplay.cpp
parent8fba2176bc34aa7e507f0b9d983427bb5e522e17 (diff)
downloadpocketempires-2d04eba931ac84e2f09d3c8391125f8a991ca7d3.tar.gz
Deprecated use of sprintf() in favor of custom routine Systemitoa().
When B button is released and showActionsMenu == true, showActionsMenu = false.
Diffstat (limited to 'Gameplay.cpp')
-rw-r--r--Gameplay.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Gameplay.cpp b/Gameplay.cpp
index aceca8f..1613a86 100644
--- a/Gameplay.cpp
+++ b/Gameplay.cpp
@@ -60,7 +60,7 @@ void GameInit(void)
bool GamePause(void)
{
- if (PadButtonReleased(PAD_C) == true)
+ if (PadButtonReleased(PAD_C) != false)
{
uint8_t choice = gb.menu(PauseMenuOptions, 2);
@@ -82,7 +82,7 @@ void GameCalculations(void)
GamePlayers[i].Handler();
}
- if (PadAnyKeyPressed() == true)
+ if (PadAnyKeyPressed() != false)
{
SystemSetRandSeed();
}
@@ -106,7 +106,7 @@ void GameLoop(void)
{
while (1)
{
- if (GamePause() == true)
+ if (GamePause() != false)
{
return;
}