diff --git a/CMakeLists.txt b/CMakeLists.txt index 72e8878..9510886 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,7 +134,7 @@ elseif("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50) endif() if("${COLORMODE_cg}" STREQUAL EGA64) - target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -g -DCOLOREGA) + target_compile_options(myaddin PRIVATE -Wall -Wextra -O0 -g -DCOLOREGA) endif() if("${COLORMODE_cg}" STREQUAL 1b) diff --git a/assets/converters.py b/assets/converters.py index ad29f80..b984b67 100644 --- a/assets/converters.py +++ b/assets/converters.py @@ -37,7 +37,6 @@ def convert_world(input, output, params, target): if DEBUG: print( "So let's go ... ") structWorld = fxconv.Structure() - structWorld += fxconv.string("DEBUG") #structExtra = fxconv.Structure() for i in range(nbMaps): @@ -74,7 +73,6 @@ def convert_world(input, output, params, target): structWorld += fxconv.ptr( map ) structWorld += fxconv.u32(0) - structWorld += fxconv.string("DEBUG") #generate ! fxconv.elf(structWorld, output, "_" + params["name"], **target) diff --git a/src/config.h b/src/config.h index a899255..cbc1423 100644 --- a/src/config.h +++ b/src/config.h @@ -3,7 +3,7 @@ #define USB_FEATURE 0 -#define DEBUGMODE 0 +#define DEBUGMODE 1 #include diff --git a/src/main.c b/src/main.c index 9812b20..9ab1722 100644 --- a/src/main.c +++ b/src/main.c @@ -126,6 +126,9 @@ int main(void) { dgray(DGRAY_ON); #endif + dupdate(); + getkey(); + do{ /* clear screen */ dclear(C_WHITE); @@ -133,7 +136,7 @@ int main(void) { /* render the map */ game_draw(&game); - #if DEBUGMODE && GINT_RENDER_RGB + /*#if DEBUGMODE && GINT_RENDER_RGB if (game.debug_map) { dfont( NULL ); @@ -170,7 +173,7 @@ int main(void) { game.map_level->dialogs[ game.map_level->extradata[i].dialogID ].ID, game.map_level->dialogs[ game.map_level->extradata[i].dialogID ].conclusion1[0] ); } - #endif + #endif*/ /* start the logic of the game */ game_logic(&game); diff --git a/src/map.c b/src/map.c index 9c42439..4b14bd7 100644 --- a/src/map.c +++ b/src/map.c @@ -178,7 +178,7 @@ void map_render_by_layer(Game *game, int layer) { int currentIndex = (y+ty) * map_level->w + tx+x; /* we get the ID of the tile in the current drawable layers */ - tile = map_level->layers[layer][currentIndex]; + tile = map_level->layers[layer][currentIndex]; //DEBUG : Unaligned read here /* tile == -1 means nothing to be drawn */ if(tile >= 0){