From 668b7a24a9a43ff8207bfad47e443cd808fd929f Mon Sep 17 00:00:00 2001 From: Sorrowfulwinds Date: Thu, 11 Dec 2025 23:49:46 -0600 Subject: [PATCH] Update rgb(argslist) usage (#7425) ## About The Pull Request Fix OD0013 error 'rgb takes 3 to 5 arguments' May technically be an OpenDream compiler error as this presumably does work as is. But Lohikar suggested a better solution for modern byond and we like better solutions. ## Why It's Good For The Game Cleans up 1 line of dirty code. OD compatibility++ ## Changelog :cl: fix: Fix a bad use of rgb() /:cl: --- code/modules/admin/admin_modal/modals/admin_narrate.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/admin_modal/modals/admin_narrate.dm b/code/modules/admin/admin_modal/modals/admin_narrate.dm index 58ae3a88325..65cb4bd8fba 100644 --- a/code/modules/admin/admin_modal/modals/admin_narrate.dm +++ b/code/modules/admin/admin_modal/modals/admin_narrate.dm @@ -54,7 +54,7 @@ if(!.) return set_target(target) - src.narrate_visual_color = rgb(arglist(hsl2rgb(rand(0, 360), rand(0, 360), rand(125, 360)))) + src.narrate_visual_color = rgb(rand(0, 360), rand(0, 360), rand(125, 360), space = COLORSPACE_HSL) var/list/possible_modes = resolve_modes() if(length(possible_modes))