mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
Preload vox sounds when preload_rsc is disabled
They should be getting sent to the client via the CDN, but thats not working properly and this works to fix it
This commit is contained in:
committed by
GitHub
parent
9d5f0c5506
commit
2b8f3385bd
@@ -675,6 +675,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
|
||||
|
||||
Reference in New Issue
Block a user