logging improvements

This commit is contained in:
Gunter Labes 2007-11-30 11:35:10 +00:00
parent 51061d832a
commit 6e8b509279
3 changed files with 6 additions and 4 deletions

View file

@ -2,6 +2,8 @@ Version 1.3.11+svn:
* language and i18n:
* updated translations: Czech, Danish, Finnish, French, Italian, Polish,
Swedish
* map editor and terrains:
* added village count to editor
* multiplayer:
* revised maps: Caves of the Basilisk, Cynsaun Battlefield, Den of Onis,
Fallenstar Lake, Hamlets, Hornshark Island, Sablestone Delta, Silverhead
@ -58,8 +60,6 @@ Version 1.3.11+svn:
* fix bug #8991: Load a second savegame crash when using --test option
* added a new drawing framework only used for linger overlays at the
moment, other stuff can be converted later
* map editor and terrains:
* added village count to editor
Version 1.3.11:
* campaigns

View file

@ -47,6 +47,7 @@
#define ERR_DP LOG_STREAM(err, display)
#define LOG_DP LOG_STREAM(info, display)
#define DBG_DP LOG_STREAM(debug, display)
#define ERR_G LOG_STREAM(err, general)
namespace gui {
@ -530,7 +531,7 @@ dialog::dimension_measurements dialog::layout(int xloc, int yloc)
dim.interior.x = maximum<int>(0,dim.x >= 0 ? dim.x : scr->w/2 - (dim.interior.w + left_preview_pane_width + right_preview_pane_width)/2);
dim.interior.y = maximum<int>(0,dim.y >= 0 ? dim.y : scr->h/2 - (dim.interior.h + above_preview_pane_height)/2);
LOG_DP << "above_preview_pane_height: " << above_preview_pane_height << "; "
DBG_DP << "above_preview_pane_height: " << above_preview_pane_height << "; "
<< "dim.interior.y: " << scr->h/2 << " - " << (dim.interior.h + above_preview_pane_height)/2 << " = "
<< dim.interior.y << "; " << "dim.interior.h: " << dim.interior.h << "\n";

View file

@ -51,6 +51,7 @@
#define LOG_NG LOG_STREAM(info, engine)
#define WRN_NG LOG_STREAM(warn, engine)
#define ERR_NG LOG_STREAM(err, engine)
#define DBG_DP LOG_STREAM(debug, display)
#define LOG_DP LOG_STREAM(info, display)
#define ERR_CF LOG_STREAM(err, config)
@ -1714,7 +1715,7 @@ bool event_handler::handle_event_command(const queued_event& event_info,
int option_chosen = -1;
LOG_DP << "showing dialog...\n";
DBG_DP << "showing dialog...\n";
// If we're not replaying, or if we are replaying
// and there is no choice to be made, show the dialog.