dedicated.c
changeset 626 35294912464a
parent 543 946badd71033
child 702 5e80e4d69057
equal deleted inserted replaced
625:40c83b088bb8 626:35294912464a
    29 	_screen.height = _cur_resolution[1];
    29 	_screen.height = _cur_resolution[1];
    30 	_dedicated_video_mem = malloc(_cur_resolution[0]*_cur_resolution[1]);
    30 	_dedicated_video_mem = malloc(_cur_resolution[0]*_cur_resolution[1]);
    31 
    31 
    32 	_debug_net_level = 6;
    32 	_debug_net_level = 6;
    33 	_debug_misc_level = 0;
    33 	_debug_misc_level = 0;
       
    34 
       
    35 #ifdef WIN32
       
    36 	// For win32 we need to allocate an console (debug mode does the same)
       
    37 	CreateConsole();
       
    38 	SetConsoleTitle("OpenTTD Dedicated Server");
       
    39 #endif
    34 
    40 
    35 	DEBUG(misc,0)("Loading dedicated server...");
    41 	DEBUG(misc,0)("Loading dedicated server...");
    36 	return NULL;
    42 	return NULL;
    37 }
    43 }
    38 static void DedicatedVideoStop() { free(_dedicated_video_mem); }
    44 static void DedicatedVideoStop() { free(_dedicated_video_mem); }