Skip to content

Commit

Permalink
Fixes a petulent little runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
francinum committed Jul 31, 2023
1 parent fa3e4c9 commit 4594806
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions code/modules/modular_computers/file_system/programs/ntmessenger.dm
Original file line number Diff line number Diff line change
Expand Up @@ -351,17 +351,10 @@


if (ringer_status)
if(!computer)
message_admins("Messenger Program exists with no computer, [ADMIN_VV(src)]");
var/message = "Messenger Program with no computer."
if(QDELETED(src))
message += " \[Messenger is qdeleted!\]"
if(QDELETED(holder))
if(isnull(holder))
message += " \[Messenger is not in a harddrive!\]"
else
message += " \[Messenger harddrive is qdeleting!\]"
CRASH(message)
if(!holder.holder)
return //We aren't actually in a computer, SSpackets might have gotten severely gummed up or smth.
//otherwise, fix the computer var and run.
computer = holder.holder
computer.ring(ringtone)

/datum/computer_file/program/messenger/Topic(href, href_list)
Expand Down

0 comments on commit 4594806

Please sign in to comment.