From: Tobias Markus Date: Sun, 15 Dec 2013 20:58:50 +0000 (+0100) Subject: Adding current level name and author to badguy warning X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b48d93ad3b4d1a60724fc44a3db31f6cf4f6e0c8;p=supertux.git Adding current level name and author to badguy warning --- diff --git a/src/badguy/badguy.cpp b/src/badguy/badguy.cpp index 4d3c57247..6f337cb3a 100644 --- a/src/badguy/badguy.cpp +++ b/src/badguy/badguy.cpp @@ -147,7 +147,8 @@ BadGuy::update(float elapsed_time) int path_chars = badguy.rfind("/",badguy.length()); badguy = badguy.substr(path_chars + 1, badguy.length() - path_chars); // log warning since badguys_killed can no longer reach total_badguys - log_warning << "Counted badguy " << badguy << " starting at " << start_position << " has left the sector" <get_level()->author + " - " + Sector::current()->get_level()->name + "] "; + log_warning << current_level << "Counted badguy " << badguy << " starting at " << start_position << " has left the sector" <