[MIRROR] Preload vox sounds when preload_rsc is disabled (#6042)

* Merge pull request #36557 from MrStonedOne/patch-498

Preload vox sounds when preload_rsc is disabled

* Preload vox sounds when preload_rsc is disabled
This commit is contained in:
CitadelStationBot
2018-03-21 12:49:48 -05:00
committed by Poojawa
parent 5433b320bf
commit 962311ff0d
+6
View File
@@ -695,6 +695,12 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
spawn (10) //removing this spawn causes all clients to not get verbs.
//Precache the client with all other assets slowly, so as to not block other browse() calls
getFilesSlow(src, SSassets.preload, register_asset = FALSE)
#if (PRELOAD_RSC == 0)
for (var/name in GLOB.vox_sounds)
var/file = GLOB.vox_sounds[name]
Export("##action=load_rsc", file)
stoplag()
#endif
//Hook, override it to run code when dir changes