diff --git a/modular_ss220/cinematics/code/cinematics/credits.dm b/modular_ss220/cinematics/code/cinematics/credits.dm index fcc6c55fe3eb..940d553f7695 100644 --- a/modular_ss220/cinematics/code/cinematics/credits.dm +++ b/modular_ss220/cinematics/code/cinematics/credits.dm @@ -21,9 +21,9 @@ start_cinematic(src.watching) /datum/cinematic/credits/play_cinematic() - play_cinematic_sound(sound(SScredits.title_music, volume = 20)) SScredits.roll_credits_for_clients(watching) + play_cinematic_sound(sound(SScredits.end_titles.soundtrack, volume = 20)) cleanup_time = SScredits.end_titles.playing_time + 3 SECONDS diff --git a/modular_ss220/credits/code/SScredits.dm b/modular_ss220/credits/code/SScredits.dm index ea8bc9febfe3..53fd0bf628cc 100644 --- a/modular_ss220/credits/code/SScredits.dm +++ b/modular_ss220/credits/code/SScredits.dm @@ -14,8 +14,6 @@ SUBSYSTEM_DEF(credits) /datum/controller/subsystem/credits/Initialize() credit_animate_height = 16 * world.icon_size - title_music = pick(file2list("config/credits/sounds/title_music.txt")) - /datum/controller/subsystem/credits/proc/roll_credits_for_clients(list/clients) end_titles = new /datum/credits/default() @@ -63,10 +61,13 @@ SUBSYSTEM_DEF(credits) /datum/credits var/list/credits = list() var/playing_time = 5 SECONDS + var/soundtrack /datum/credits/New() . = ..() + soundtrack = pick(file2list("config/credits/sounds/title_music.txt")) + fill_credits() count_time() @@ -163,17 +164,18 @@ SUBSYSTEM_DEF(credits) return var/datum/db_query/ranks_ckey_read = SSdbcore.NewQuery( - "SELECT admin_rank, ckey FROM admin") + "SELECT admin_rank, ckey FROM admin WHERE admin_rank=:rank", + list("rank" = "Банда")) if(!ranks_ckey_read.warn_execute()) qdel(ranks_ckey_read) return while(ranks_ckey_read.NextRow()) - if(ranks_ckey_read.item[1] != "Банда") + var/client/client = get_client_by_ckey(ranks_ckey_read.item[2]) + if(!client) continue - var/ckey = ranks_ckey_read.item[2] - streamers += "