Another cleanup

This commit is contained in:
aleos89 2019-07-23 10:45:11 -04:00
parent fe1966ea7a
commit a0461ffc1e

View File

@ -206,7 +206,7 @@ int do_init(int argc, char** argv)
// Attempt to open the map cache file and force rebuild if not found // Attempt to open the map cache file and force rebuild if not found
ShowStatus("Opening map cache: %s\n", map_cache_file.c_str()); ShowStatus("Opening map cache: %s\n", map_cache_file.c_str());
if (!rebuild) { if(!rebuild) {
map_cache_fp = fopen(map_cache_file.c_str(), "rb"); map_cache_fp = fopen(map_cache_file.c_str(), "rb");
if(map_cache_fp == NULL) { if(map_cache_fp == NULL) {
ShowNotice("Existing map cache not found, forcing rebuild mode\n"); ShowNotice("Existing map cache not found, forcing rebuild mode\n");
@ -238,7 +238,7 @@ int do_init(int argc, char** argv)
} }
// Initialize the main header // Initialize the main header
if(rebuild) { if (rebuild) {
header.file_size = sizeof(struct main_header); header.file_size = sizeof(struct main_header);
header.map_count = 0; header.map_count = 0;
} else { } else {