From 92b7eb534a13769ec1ce6b94904a27169ef3f934 Mon Sep 17 00:00:00 2001 From: Erthilo Date: Wed, 27 Jun 2012 22:34:55 +0100 Subject: [PATCH] Fixes sleeping resting message spam. --- code/modules/mob/living/carbon/human/life.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 3dd12284478..0965b94df92 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -1048,11 +1048,11 @@ stat = 1 if (sleeping > 0) - if(stat == 0) - // BUG: this doesn't seem to happen ever.. probably when you hit sleep willingly, - // it automatically adjusts your stat without calling this proc + if(stat == 0 && !resting) + // BUG: this doesn't seem to happen ever.. probably when you hit sleep willingly, + // it automatically adjusts your stat without calling this proc - // show them a message so they know what's going on + // show them a message so they know what's going on src << "\blue You feel very drowsy.. Your eyelids become heavy..." handle_dreams()