From 2b8f3385bdbddf86376157f2cf4e9df67aac5363 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Mon, 19 Mar 2018 23:59:48 -0700 Subject: [PATCH] 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 --- code/modules/client/client_procs.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index c5604ea387b..6257826e021 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -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