Skip to content

Commit

Permalink
Add current level to another debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Feb 24, 2015
1 parent 8beeeba commit 146cb5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/supertux/sector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 146cb5c

Please sign in to comment.