equal
deleted
inserted
replaced
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); } |