From 345e2c38ad6c28c40063dd42a421488c5d664f61 Mon Sep 17 00:00:00 2001 From: darkvater Date: Mon, 16 Aug 2004 22:15:44 +0000 Subject: [PATCH] (svn r70) -Fix: typo in english.txt -Add some debug messages for misc=1 --- airport.c | 5 +++-- industry_gui.c | 2 +- lang/english.txt | 2 +- station_gui.c | 2 +- town_gui.c | 2 +- window.c | 4 ++-- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/airport.c b/airport.c index 270f26c144..307213c846 100644 --- a/airport.c +++ b/airport.c @@ -1,4 +1,5 @@ #include "stdafx.h" +#include "ttd.h" #include "airport.h" AirportFTAClass *CountryAirport; @@ -92,8 +93,8 @@ static void AirportFTAClass_Constructor(AirportFTAClass *Airport, // build the state machine AirportBuildAutomata(Airport, FA); - // DEBUG(misc, 1) ("#Elements %2d; #Terminals %2d in %d group(s); #Helipads %2d in %d group(s)", Airport->nofelements, - // Airport->nofterminals, Airport->nofterminalgroups, Airport->nofhelipads, Airport->nofhelipadgroups); + DEBUG(misc, 1) ("#Elements %2d; #Terminals %2d in %d group(s); #Helipads %2d in %d group(s)", Airport->nofelements, + Airport->nofterminals, Airport->nofterminalgroups, Airport->nofhelipads, Airport->nofhelipadgroups); { diff --git a/industry_gui.c b/industry_gui.c index 09e3c97d2b..de697f9180 100644 --- a/industry_gui.c +++ b/industry_gui.c @@ -466,7 +466,7 @@ static void MakeSortedIndustryList() qsort(_industry_sort, n, 1, IndustrySorter); - //DEBUG(misc, 1) ("Resorting Industries list..."); + DEBUG(misc, 1) ("Resorting Industries list..."); } diff --git a/lang/english.txt b/lang/english.txt index 3d525d6786..95f3808cf2 100644 --- a/lang/english.txt +++ b/lang/english.txt @@ -1000,7 +1000,7 @@ STR_CONFIG_PATCHES_COLORED_NEWS_DATE :{LTBLUE}Coloured news appears in: {ORANGE} STR_CONFIG_PATCHES_STARTING_DATE :{LTBLUE}Starting date: {ORANGE}{STRING} STR_CONFIG_PATCHES_SMOOTH_ECONOMY :{LTBLUE}Enable smooth economy (more, smaller changes) STR_CONFIG_PATCHES_DRAG_SIGNALS_DENSITY :{LTBLUE}When dragging place signals every: {ORANGE}{STRING} tile(s) -STR_CONFIG_PATCHES_TOOLBAR_POS :{LTBLUE}Position of maintoolbar: {ORANGE}{STRING} +STR_CONFIG_PATCHES_TOOLBAR_POS :{LTBLUE}Position of main toolbar: {ORANGE}{STRING} STR_CONFIG_PATCHES_TOOLBAR_POS_LEFT :Left STR_CONFIG_PATCHES_TOOLBAR_POS_CENTER :Center STR_CONFIG_PATCHES_TOOLBAR_POS_RIGHT :Right diff --git a/station_gui.c b/station_gui.c index a10ad0c478..17cb742402 100644 --- a/station_gui.c +++ b/station_gui.c @@ -108,7 +108,7 @@ static void MakeSortedStationList(Window *w) _last_station_idx = 255; // used for "cache" qsort(_station_sort, n, sizeof(_station_sort[0]), StationSorterByName); - //DEBUG(misc, 1) ("Resorting Stations list..."); + DEBUG(misc, 1) ("Resorting Stations list..."); } static void PlayerStationsWndProc(Window *w, WindowEvent *e) diff --git a/town_gui.c b/town_gui.c index 5571bcfc99..2b867607b4 100644 --- a/town_gui.c +++ b/town_gui.c @@ -393,7 +393,7 @@ static void MakeSortedTownList() _last_town_idx = 255; // used for "cache" qsort(_town_sort, n, 1, _town_sort_order & 2 ? TownSorterByPop : TownSorterByName); - //DEBUG(misc, 1) ("Resorting Towns list..."); + DEBUG(misc, 1) ("Resorting Towns list..."); } diff --git a/window.c b/window.c index 19115e0ee3..bd68afe5f4 100644 --- a/window.c +++ b/window.c @@ -1023,7 +1023,7 @@ void MouseLoop() } if (click == 1) { - //DEBUG(misc, 1) ("cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite); + DEBUG(misc, 1) ("cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite); if (_thd.place_mode != 0 && // query button and place sign button work in pause mode !(_cursor.sprite == 0x2CF || _cursor.sprite == 0x2D2) && @@ -1176,7 +1176,7 @@ void DeleteNonVitalWindows() int PositionMainToolbar(Window *w) { - //DEBUG(misc, 1) ("Repositioning Main Toolbar..."); + DEBUG(misc, 1) ("Repositioning Main Toolbar..."); if (w == NULL || w->window_class != WC_MAIN_TOOLBAR) w = FindWindowById(WC_MAIN_TOOLBAR, 0);