Merge pull request #5701 from Crazylemon64/maploader_missing_file_yell

Map reader now yells when given bad path/empty file
This commit is contained in:
Fox McCloud
2016-09-29 13:16:51 -04:00
committed by GitHub
@@ -43,6 +43,8 @@ var/global/dmm_suite/preloader/_preloader = new
if(isfile(tfile))
fname = "[tfile]"
tfile = file2text(tfile)
if(length(tfile) == 0)
throw EXCEPTION("Map path '[fname]' does not exist!")
if(!x_offset)
x_offset = 1