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=30339004467112b41d7c6b6e4154a872820f245b;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" <