mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Merge branch 'master' into overhaul-event-mob-selection
This commit is contained in:
@@ -30,6 +30,11 @@ GLOBAL_DATUM_INIT(_preloader, /datum/dmm_suite/preloader, new())
|
||||
var/fname = "Lambda"
|
||||
if(isfile(tfile))
|
||||
fname = "[tfile]"
|
||||
// Make sure we dont load a dir up
|
||||
var/lastchar = copytext(fname, -1)
|
||||
if(lastchar == "/" || lastchar == "\\")
|
||||
log_debug("Attempted to load map template without filename (Attempted [tfile])")
|
||||
return
|
||||
tfile = file2text(tfile)
|
||||
if(!length(tfile))
|
||||
throw EXCEPTION("Map path '[fname]' does not exist!")
|
||||
|
||||
Reference in New Issue
Block a user