X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Fsector.cpp;h=8575297ae3ec749324afefa75ce3b9214da4c3cc;hb=146cb5cf3c1ea9bd8f884e3c99a7789c42d598f1;hp=a2afe93e9bc0c77a423cbec55c94488e96251cc7;hpb=8beeeba905826ff6cea39cdaaa71c1e6ea70d825;p=supertux.git diff --git a/src/supertux/sector.cpp b/src/supertux/sector.cpp index a2afe93e9..8575297ae 100644 --- a/src/supertux/sector.cpp +++ b/src/supertux/sector.cpp @@ -587,7 +587,8 @@ Sector::activate(const Vector& player_pos) // spawning tux in the ground would kill him if(!is_free_of_tiles(p->get_bbox())) { - log_warning << "Tried spawning Tux in solid matter. Compensating." << std::endl; + std::string current_level = "[" + Sector::current()->get_level()->filename + "] "; + log_warning << current_level << "Tried spawning Tux in solid matter. Compensating." << std::endl; Vector npos = p->get_bbox().p1; npos.y-=32; p->move(npos);