The maploader now yells when you give it a bad path or empty file

This commit is contained in:
Crazylemon64
2016-09-21 19:42:38 -07:00
parent 4a0c9f7e74
commit d85eab037d
@@ -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