# HG changeset patch # User tron # Date 1132130126 0 # Node ID 7cd504bd4e51a463ab09a97fd9d113ce6602168f # Parent 72973ab76048de82cae4b7e7d4920786c46f58f2 (svn r3191) Move declaration and definition of _dbg_screen_rect to a place where it somewhat makes sense and wrap them in #ifdef _DEBUG diff -r 72973ab76048 -r 7cd504bd4e51 gfx.c --- a/gfx.c Tue Nov 15 11:46:49 2005 +0000 +++ b/gfx.c Wed Nov 16 08:35:26 2005 +0000 @@ -13,6 +13,10 @@ #include "hal.h" #include "variables.h" +#ifdef _DEBUG +bool _dbg_screen_rect; +#endif + Colour _cur_palette[256]; static void GfxMainBlitter(const Sprite *sprite, int x, int y, int mode); diff -r 72973ab76048 -r 7cd504bd4e51 gfx.h --- a/gfx.h Tue Nov 15 11:46:49 2005 +0000 +++ b/gfx.h Wed Nov 16 08:35:26 2005 +0000 @@ -124,4 +124,8 @@ IS_PALETTE_COLOR = 0x100, // color value is already a real palette color index, not an index of a StringColor } StringColorFlags; +#ifdef _DEBUG +extern bool _dbg_screen_rect; +#endif + #endif /* GFX_H */ diff -r 72973ab76048 -r 7cd504bd4e51 hal.h --- a/hal.h Tue Nov 15 11:46:49 2005 +0000 +++ b/hal.h Wed Nov 16 08:35:26 2005 +0000 @@ -43,7 +43,6 @@ }; extern void GameLoop(void); -extern bool _dbg_screen_rect; // Deals with finding savegames diff -r 72973ab76048 -r 7cd504bd4e51 openttd.c --- a/openttd.c Tue Nov 15 11:46:49 2005 +0000 +++ b/openttd.c Wed Nov 16 08:35:26 2005 +0000 @@ -61,8 +61,6 @@ extern void DoStartupNewPlayer(bool is_ai); extern void ShowOSErrorBox(const char *buf); -bool _dbg_screen_rect; - /* TODO: usrerror() for errors which are not of an internal nature but * caused by the user, i.e. missing files or fatal configuration errors. * Post-0.4.0 since Celestar doesn't want this in SVN before. --pasky */