diff --git a/4ed.cpp b/4ed.cpp index f12b8ca0..64655324 100644 --- a/4ed.cpp +++ b/4ed.cpp @@ -7,7 +7,6 @@ * */ - // TOP // App Structs diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index 1cdfe2a0..0f3208f6 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -737,12 +737,15 @@ file_synchronize_times(System_Functions *system, Editing_File *file){ internal b32 save_file_to_name(System_Functions *system, Models *models, Editing_File *file, char *filename){ b32 result = 0; - b32 using_actual_filename = 0; + b32 using_actual_filename = false; if (!filename){ terminate_with_null(&file->canon.name); filename = file->canon.name.str; - using_actual_filename = 1; + using_actual_filename = true; + } + else if (match(filename, file->canon.name)){ + using_actual_filename = true; } if (filename){