From 4eaa6c091f97ca3455b2ae48a5f68867c0f7768e Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Tue, 26 Dec 2017 22:18:37 +0100 Subject: * Slight optimization: all comparations against true are now compared against != false. + Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map. --- Source/LoadMenu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Source/LoadMenu.c') diff --git a/Source/LoadMenu.c b/Source/LoadMenu.c index 52bd093..246edc3 100644 --- a/Source/LoadMenu.c +++ b/Source/LoadMenu.c @@ -262,30 +262,30 @@ void ISR_LoadMenuVBlank(void) SystemIncreaseGlobalTimer(); - if (SystemIsBusy() == true) + if (SystemIsBusy() != false) { dprintf("SystemIsBusy...\n"); return; } - if ((GfxIsGPUBusy() == true)) + if ((GfxIsGPUBusy() != false)) { - dprintf("(GfxIsGPUBusy() == true)\n"); + dprintf("(GfxIsGPUBusy() != false)\n"); return; } - if (SerialIsBusy() == true) + if (SerialIsBusy() != false) { dprintf("Serialisbusy\n"); return; } - /*if ( (SystemIsBusy() == true) || (GfxIsGPUBusy() == true) || (SerialIsBusy() == true) ) + /*if ( (SystemIsBusy() != false) || (GfxIsGPUBusy() != false) || (SerialIsBusy() != false) ) { return; }*/ - if (startup_flag == true) + if (startup_flag != false) { // "Loading..." text if (LoadMenuTitleSpr.r < LOADING_TITLE_LUMINANCE_TARGET) @@ -343,7 +343,7 @@ void ISR_LoadMenuVBlank(void) } } - else if (end_flag == true) + else if (end_flag != false) { LoadMenuTitleSpr.r -= LOADING_TITLE_LUMINANCE_STEP; LoadMenuTitleSpr.g -= LOADING_TITLE_LUMINANCE_STEP; -- cgit v1.2.3