From e2110226cf46cbcd0ec733f2634aa03a01ac8cb3 Mon Sep 17 00:00:00 2001 From: Stan_Albatross <66756236+stanalbatross@users.noreply.github.com> Date: Thu, 3 Aug 2023 21:21:16 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: harryob --- code/game/machinery/computer/almayer_control.dm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/computer/almayer_control.dm b/code/game/machinery/computer/almayer_control.dm index 45e205ad74bb..129bf0ae544c 100644 --- a/code/game/machinery/computer/almayer_control.dm +++ b/code/game/machinery/computer/almayer_control.dm @@ -8,10 +8,14 @@ unslashable = TRUE unacidable = TRUE - COOLDOWN_DECLARE(cooldown_request) // requesting a distress beacon - COOLDOWN_DECLARE(cooldown_destruct) // requesting evac - COOLDOWN_DECLARE(cooldown_central) // messaging HC (admins) - COOLDOWN_DECLARE(cooldown_message) // making a ship announcement + /// requesting a distress beacon + COOLDOWN_DECLARE(cooldown_request) + /// requesting evac + COOLDOWN_DECLARE(cooldown_destruct) + /// messaging HC (admins) + COOLDOWN_DECLARE(cooldown_central) + /// making a ship announcement + COOLDOWN_DECLARE(cooldown_message) var/list/messagetitle = list() var/list/messagetext = list() @@ -84,7 +88,7 @@ if(!messagetitle.len) data["messages"] = null else - for(var/i = 1; i<=messagetitle.len; i++) + for(var/i in 1 to length(messagetitle)) var/list/messagedata = list(list( "title" = messagetitle[i], "text" = messagetext[i],