mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user