From 75c139de48cb1668a0df1ae0be533c649973ac26 Mon Sep 17 00:00:00 2001 From: Verkister Date: Mon, 28 Jun 2021 22:03:13 +0300 Subject: [PATCH] Adds a missing vore sanity check No more adminlog spam from preds somehow trying to devour themselves against their prefs. --- code/modules/vore/eating/living_vr.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/vore/eating/living_vr.dm b/code/modules/vore/eating/living_vr.dm index 6392c882cb6..98d713951f9 100644 --- a/code/modules/vore/eating/living_vr.dm +++ b/code/modules/vore/eating/living_vr.dm @@ -482,7 +482,9 @@ //Sanity if(!user || !prey || !pred || !istype(belly) || !(belly in pred.vore_organs)) log_debug("[user] attempted to feed [prey] to [pred], via [belly ? lowertext(belly.name) : "*null*"] but it went wrong.") - return + return FALSE + if(pred == prey) + return FALSE // The belly selected at the time of noms var/attempt_msg = "ERROR: Vore message couldn't be created. Notify a dev. (at)" @@ -905,4 +907,4 @@ for(var/EL in B.emote_lists) to_chat(src, "[EL]:") for(var/msg in B.emote_lists[EL]) - to_chat(src, "[msg]") \ No newline at end of file + to_chat(src, "[msg]")