Skip to content

Commit

Permalink
Remove useless warnings (#2916)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy authored Oct 15, 2024
1 parent e2363a3 commit 86dfe82
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/supertux/sector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down
3 changes: 0 additions & 3 deletions src/supertux/tile_set_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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." <<std::endl;
}

m_tiles_path = FileSystem::dirname(m_filename);

Expand Down

0 comments on commit 86dfe82

Please sign in to comment.