Skip to content

Commit

Permalink
Second id check was necessary in case of removal during tgui input
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Jun 9, 2024
1 parent 6034c6f commit 2b824c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/cm_marines/overwatch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,11 @@
to_chat(usr, "[icon2html(src, usr)] [SPAN_WARNING("[transfer_marine] is KIA.")]")
return

card = transfer_marine.get_idcard()
if(!card)
to_chat(usr, "[icon2html(src, usr)] [SPAN_WARNING("Transfer aborted. [transfer_marine] isn't wearing an ID.")]")
return

var/datum/squad/old_squad = transfer_marine.assigned_squad
if(new_squad == old_squad)
to_chat(usr, "[icon2html(src, usr)] [SPAN_WARNING("[transfer_marine] is already in [new_squad]!")]")
Expand Down

0 comments on commit 2b824c9

Please sign in to comment.