diff --git a/scenes/editor_scene.c b/scenes/editor_scene.c index 40e6874..1639268 100644 --- a/scenes/editor_scene.c +++ b/scenes/editor_scene.c @@ -250,7 +250,7 @@ static void render_editor_game_scene(Scene_t* scene) { #define SURFACE_THICKNESS 4 int up = i - tilemap.width; - int bot = i + tilemap.width; + unsigned int bot = i + tilemap.width; int right = i + 1; int left = i - 1; int bot_line = y + TILE_SIZE - tilemap.tiles[i].water_level * WATER_BBOX_STEP - SURFACE_THICKNESS / 2; diff --git a/scenes/game_scene.c b/scenes/game_scene.c index 4b903be..84d7935 100644 --- a/scenes/game_scene.c +++ b/scenes/game_scene.c @@ -167,7 +167,7 @@ static void render_regular_game_scene(Scene_t* scene) { #define SURFACE_THICKNESS 4 int up = i - tilemap.width; - int bot = i + tilemap.width; + unsigned int bot = i + tilemap.width; int right = i + 1; int left = i - 1; int bot_line = y + TILE_SIZE - tilemap.tiles[i].water_level * WATER_BBOX_STEP - SURFACE_THICKNESS / 2;