This commit is contained in:
SabreML
2021-09-03 14:24:56 +01:00
parent e9f807fa3b
commit b2ab2cfbd8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
return INITIALIZE_HINT_LATELOAD // Give the message server time to initialize
/obj/machinery/computer/message_monitor/LateInitialize()
//Is the monitor isn't linked to a server, and there's a server available, default it to the first one in the list.
//If the monitor isn't linked to a server, and there's a server available, default it to the first one in the list.
if(!linkedServer && length(GLOB.message_servers))
linkedServer = GLOB.message_servers[1]
RegisterSignal(linkedServer, COMSIG_PARENT_QDELETING, .proc/unlink_server)
+2 -2
View File
@@ -154,8 +154,7 @@
*/
/datum/data/pda/app/mob_hunter_game/proc/remove_mob(datum/mob_hunt/mob_override = null)
SIGNAL_HANDLER
var/collection_length = length(my_collection)
if(!collection_length)
if(!length(my_collection))
return
if(mob_override)
@@ -163,6 +162,7 @@
else
my_collection -= my_collection[current_index]
var/collection_length = length(my_collection)
if(current_index > collection_length)
current_index = collection_length