Remove silly goofy string breaking everything

This commit is contained in:
attilavs2 2024-07-28 23:08:56 +02:00
parent f29fbf73de
commit 522f6d25a8
5 changed files with 8 additions and 7 deletions

View file

@ -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)

View file

@ -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)

View file

@ -3,7 +3,7 @@
#define USB_FEATURE 0
#define DEBUGMODE 0
#define DEBUGMODE 1
#include <gint/display.h>

View file

@ -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);

View file

@ -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){