Changeset - r2557:b3e50cfde797
[Not reviewed]
master
0 5 0
tron - 18 years ago 2005-10-26 07:12:14
tron@openttd.org
(svn r3090) Remove long dead pieces of code
5 files changed with 1 insertions and 15 deletions:
0 comments (0 inline, 0 general)
callback_table.c
Show inline comments
 
@@ -26,7 +26,6 @@ CommandCallback CcBuildCanal;
 
CommandCallback CcPlaySound10;
 
CommandCallback CcPlaceSign;
 
CommandCallback CcTerraform;
 
//CommandCallback CcDemolish;
 
CommandCallback CcBuildTown;
 

	
 
/* rail_gui.c */
industry_gui.c
Show inline comments
 
@@ -281,9 +281,7 @@ static void IndustryViewWndProc(Window *
 
	case WE_PAINT: {
 
		const Industry *i;
 
		StringID str;
 
		// in editor, use bulldoze to destroy industry
 
		// Destroy Industry button costing money removed per request of dominik
 
		//w->disabled_state = (_patches.extra_dynamite && !_networking && _game_mode != GM_EDITOR) ? 0 : (1 << 6);
 

	
 
		i = GetIndustry(w->window_number);
 
		SetDParam(0, w->window_number);
 
		DrawWindowWidgets(w);
 
@@ -429,8 +427,6 @@ static const Widget _industry_view_widge
 
{     WWT_IMGBTN,   RESIZE_NONE,     9,     0,   259,   106,   147, 0x0,				STR_NULL},
 
{ WWT_PUSHTXTBTN,   RESIZE_NONE,     9,     0,   129,   148,   159, STR_00E4_LOCATION,	STR_482C_CENTER_THE_MAIN_VIEW_ON},
 
{     WWT_IMGBTN,   RESIZE_NONE,     9,   130,   259,   148,   159, 0x0,				STR_NULL},
 
// Destroy Industry button costing money removed per request of dominik
 
//{ WWT_PUSHTXTBTN,   RESIZE_NONE,     9,   130,   259,   148,   159, STR_INDUSTRYDIR_DESTROY, STR_482C_DESTROY_INDUSTRY},
 
{   WIDGETS_END},
 
};
 

	
main_gui.c
Show inline comments
 
@@ -2439,8 +2439,6 @@ void SetupColorsAndInitialWindow(void)
 
	case GM_MENU:
 
		w = AllocateWindow(0, 0, width, height, MainWindowWndProc, WC_MAIN_WINDOW, NULL);
 
		AssignWindowViewport(w, 0, 0, width, height, TileXY(32, 32), 0);
 
//		w = AllocateWindowDesc(&_toolb_intro_desc);
 
//		w->flags4 &= ~WF_WHITE_BORDER_MASK;
 
		ShowSelectGameWindow();
 
		break;
 
	case GM_NORMAL:
rail_gui.c
Show inline comments
 
@@ -738,8 +738,6 @@ static const Widget _station_builder_wid
 
{   WWT_CLOSEBOX,   RESIZE_NONE,    14,    97,   111,   112,   123, STR_0335_6,	STR_3050_SELECT_LENGTH_OF_RAILROAD},
 
{   WWT_CLOSEBOX,   RESIZE_NONE,    14,   112,   126,   112,   123, STR_0336_7,	STR_3050_SELECT_LENGTH_OF_RAILROAD},
 

	
 
//{   WWT_CLOSEBOX,   RESIZE_NONE,    14,    14,    73,   137,   148, STR_02DB_OFF, STR_3065_DON_T_HIGHLIGHT_COVERAGE},
 
//{   WWT_CLOSEBOX,   RESIZE_NONE,    14,    74,   133,   137,   148, STR_02DA_ON, STR_3064_HIGHLIGHT_COVERAGE_AREA},
 
{   WWT_CLOSEBOX,   RESIZE_NONE,    14,    37,   111,   126,   137, STR_DRAG_DROP, STR_STATION_DRAG_DROP},
 
{   WWT_CLOSEBOX,   RESIZE_NONE,    14,    14,    73,   152,   163, STR_02DB_OFF, STR_3065_DON_T_HIGHLIGHT_COVERAGE},
 
{   WWT_CLOSEBOX,   RESIZE_NONE,    14,    74,   133,   152,   163, STR_02DA_ON, STR_3064_HIGHLIGHT_COVERAGE_AREA},
ship_cmd.c
Show inline comments
 
@@ -467,17 +467,12 @@ typedef struct {
 
	uint best_length;
 
} PathFindShip;
 

	
 
//extern void dbg_store_path();
 

	
 
static bool ShipTrackFollower(TileIndex tile, PathFindShip *pfs, int track, uint length, byte *state)
 
{
 
	// Found dest?
 
	if (tile == pfs->dest_coords) {
 
		pfs->best_bird_dist = 0;
 

	
 
//		if (length < pfs->best_length)
 
//			dbg_store_path();
 

	
 
		pfs->best_length = minu(pfs->best_length, length);
 
		return true;
 
	}
0 comments (0 inline, 0 general)