From 86dfe82a531bf8df92a790752689b62019463cc0 Mon Sep 17 00:00:00 2001 From: Marty <85036874+MatusGuy@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:51:21 +0000 Subject: [PATCH] Remove useless warnings (#2916) --- src/supertux/sector.cpp | 7 ------- src/supertux/tile_set_parser.cpp | 3 --- 2 files changed, 10 deletions(-) diff --git a/src/supertux/sector.cpp b/src/supertux/sector.cpp index 01ea7fe8d53..58612963afc 100644 --- a/src/supertux/sector.cpp +++ b/src/supertux/sector.cpp @@ -252,8 +252,6 @@ Sector::activate(const Vector& player_pos) // spawning tux in the ground would kill him if (!is_free_of_tiles(player.get_bbox())) { - std::string current_level = "[" + Sector::get().get_level().m_filename + "] "; - log_warning << current_level << "Tried spawning Tux in solid matter. Compensating." << std::endl; Vector npos = player.get_bbox().p1(); npos.y-=32; player.set_pos(npos); @@ -705,11 +703,6 @@ Sector::change_solid_tiles(uint32_t old_tile_id, uint32_t new_tile_id) void Sector::set_gravity(float gravity) { - if (gravity != 10.0f) - { - log_warning << "Changing a Sector's gravitational constant might have unforeseen side-effects: " << gravity << std::endl; - } - m_gravity = gravity; } diff --git a/src/supertux/tile_set_parser.cpp b/src/supertux/tile_set_parser.cpp index 395a408a650..57b92c24bfb 100644 --- a/src/supertux/tile_set_parser.cpp +++ b/src/supertux/tile_set_parser.cpp @@ -53,9 +53,6 @@ TileSetParser::parse(int32_t start, int32_t end, int32_t offset, bool imported) log_warning << "Cannot import tiles with negative IDs. Importing will start at ID 1." << std::endl; start = 1; } - if (imported && !end) { - log_warning << "Importing a tileset with no upper ID limit can cause ID conflicts if the imported tileset is expanded in the future." <