473 if (StrEmpty(blitter)) ttd_strlcpy(blitter, _default_blitter, sizeof(blitter)); |
473 if (StrEmpty(blitter)) ttd_strlcpy(blitter, _default_blitter, sizeof(blitter)); |
474 if (resolution[0] != 0) { _cur_resolution[0] = resolution[0]; _cur_resolution[1] = resolution[1]; } |
474 if (resolution[0] != 0) { _cur_resolution[0] = resolution[0]; _cur_resolution[1] = resolution[1]; } |
475 if (startyear != INVALID_YEAR) _patches_newgame.starting_year = startyear; |
475 if (startyear != INVALID_YEAR) _patches_newgame.starting_year = startyear; |
476 if (generation_seed != GENERATE_NEW_SEED) _patches_newgame.generation_seed = generation_seed; |
476 if (generation_seed != GENERATE_NEW_SEED) _patches_newgame.generation_seed = generation_seed; |
477 |
477 |
|
478 /* The width and height must be at least 1 pixel, this |
|
479 * way all internal drawing routines work correctly. */ |
|
480 if (_cur_resolution[0] == 0) _cur_resolution[0] = 1; |
|
481 if (_cur_resolution[1] == 0) _cur_resolution[1] = 1; |
|
482 |
478 #if defined(ENABLE_NETWORK) |
483 #if defined(ENABLE_NETWORK) |
479 if (dedicated_host) snprintf(_network_server_bind_ip_host, NETWORK_HOSTNAME_LENGTH, "%s", dedicated_host); |
484 if (dedicated_host) snprintf(_network_server_bind_ip_host, NETWORK_HOSTNAME_LENGTH, "%s", dedicated_host); |
480 if (dedicated_port) _network_server_port = dedicated_port; |
485 if (dedicated_port) _network_server_port = dedicated_port; |
481 if (_dedicated_forks && !dedicated) _dedicated_forks = false; |
486 if (_dedicated_forks && !dedicated) _dedicated_forks = false; |
482 #endif /* ENABLE_NETWORK */ |
487 #endif /* ENABLE_NETWORK */ |