diff --git a/code/controllers/subsystem/title.dm b/code/controllers/subsystem/title.dm index a0bcb5feec..4cdde58d33 100644 --- a/code/controllers/subsystem/title.dm +++ b/code/controllers/subsystem/title.dm @@ -26,21 +26,25 @@ SUBSYSTEM_DEF(title) if((L.len == 1 && L[1] != "blank.png")|| (L.len > 1 && ((use_rare_screens && lowertext(L[1]) == "rare") || (lowertext(L[1]) == lowertext(SSmapping.config.map_name))))) title_screens += S - if(!isemptylist(title_screens)) - if(length(title_screens) > 1) - for(var/S in title_screens) - var/list/L = splittext(S,".") - if(L.len != 2 || L[1] != "default") - continue - title_screens -= S - break - - file_path = "config/title_screens/images/[pick(title_screens)]" + for(var/S in title_screens) + var/list/L = splittext(S,".") + if(L.len != 2) + continue + title_screens -= S + break - icon = new(fcopy_rsc(file_path)) + if(length(title_screens)) + file_path = "config/title_screens/images/[pick(title_screens)]" + + if(!file_path) + file_path = "icons/default_title.dmi" + + ASSERT(fexists(file_path)) - if(splash_turf) - splash_turf.icon = icon + icon = new(fcopy_rsc(file_path)) + + if(splash_turf) + splash_turf.icon = icon /datum/controller/subsystem/title/vv_edit_var(var_name, var_value) . = ..() diff --git a/config/title_screens/LICENSE.txt b/config/title_screens/LICENSE.txt index 831689b417..f137cde825 100644 --- a/config/title_screens/LICENSE.txt +++ b/config/title_screens/LICENSE.txt @@ -28,11 +28,3 @@ Unless otherwise noted all images were created by Cuban Pete on July 26, 2555. T ---END EXAMPLES (NOT PART OF ANY LICENSE)--- - - - ----ADD LICENSING INFORMATION BELOW--- - -blank.png and default.dmi use the default licensing found in README.md in the root directory of the project. - - diff --git a/config/title_screens/images/default.dmi b/icons/default_title.dmi similarity index 100% rename from config/title_screens/images/default.dmi rename to icons/default_title.dmi diff --git a/tools/travis/build_byond.sh b/tools/travis/build_byond.sh index a26fb14509..45e4ce7641 100755 --- a/tools/travis/build_byond.sh +++ b/tools/travis/build_byond.sh @@ -18,6 +18,10 @@ if [ "$BUILD_TOOLS" = false ]; then grep '^var/' code/*.dm | echo exit 1 fi; + + #config folder should not be mandatory + rm -rf config + source $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/byondsetup if [ "$BUILD_TESTING" = true ]; then tools/travis/dm.sh -DTRAVISBUILDING tgstation.dme