From 484c01498d3e3ff28d6c8cc8c0264ce63f1869be Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Sat, 23 Jun 2012 21:38:39 -0700 Subject: [PATCH] Sanity for the "give" command, changelog. --- code/modules/mob/living/carbon/give.dm | 4 ++++ html/changelog.html | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/code/modules/mob/living/carbon/give.dm b/code/modules/mob/living/carbon/give.dm index 167ad789fda..0b8c0614190 100644 --- a/code/modules/mob/living/carbon/give.dm +++ b/code/modules/mob/living/carbon/give.dm @@ -23,6 +23,8 @@ mob/living/carbon/verb/give() if(src.r_hand == null) switch(alert(src,"[usr] wants to give you \a [I]?",,"Yes","No")) if("Yes") + if(!I) + return if(!check_can_reach(usr,src)) usr << "You need to keep in reaching distance." src << "[usr.name] moved too far away." @@ -52,6 +54,8 @@ mob/living/carbon/verb/give() else if(src.l_hand == null) switch(alert(src,"[usr] wants to give you \a [I]?",,"Yes","No")) if("Yes") + if(!I) + return if(!check_can_reach(usr,src)) usr << "You need to keep in reaching distance." src << "[usr.name] moved too far away." diff --git a/html/changelog.html b/html/changelog.html index c0fb3646ee1..18faae2f9de 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -57,6 +57,18 @@ Stuff which is in development and not yet visible to players or just code relate should be listed in the changelog upon commit though. Thanks. --> +
+

23 June 2012

+

SkyMarshal updated:

+ +
+

23 June 2012

TG updated: