projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add current level to another debug message
[supertux.git]
/
src
/
supertux
/
sector.cpp
diff --git
a/src/supertux/sector.cpp
b/src/supertux/sector.cpp
index
a2afe93
..
8575297
100644
(file)
--- 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())) {
// 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);
Vector npos = p->get_bbox().p1;
npos.y-=32;
p->move(npos);