Made map names be added to map_metadata.txt when writing it if possible

This commit is contained in:
Maruno17
2021-11-21 23:11:19 +00:00
parent d93d73caa8
commit a5f91f62ea
2 changed files with 82 additions and 12 deletions

View File

@@ -870,6 +870,7 @@ module Compiler
map_name = (map_infos && map_infos[map_data.id]) ? map_infos[map_data.id].name : nil
if map_name
f.write(sprintf("[%03d] # %s\r\n", map_data.id, map_name))
f.write("Name = #{map_name}\r\n") if nil_or_empty?(map_data.real_name)
else
f.write(sprintf("[%03d]\r\n", map_data.id))
end