Give fix (#628), some silly compile fix.

This commit is contained in:
SkyMarshal
2012-03-13 23:21:37 -07:00
parent b6454d3ac9
commit 251654bc9d
+5 -21
View File
@@ -46,9 +46,9 @@ mob/living/carbon/verb/give()
I.layer = 20
I.add_fingerprint(src)
src.update_clothing()
action_message(src,"[usr.name] handed \the [I.name] to [src.name].")
src.visible_message(src,"[usr.name] handed \the [I.name] to [src.name].")
if("No")
action_message(src,"[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
src.visible_message(src,"[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
else if(src.l_hand == null)
switch(alert(src,"[src.name] wants to give you \a [I.name]?",,"Yes","No"))
if("Yes")
@@ -75,24 +75,8 @@ mob/living/carbon/verb/give()
I.layer = 20
I.add_fingerprint(src)
src.update_clothing()
action_message(src,"[usr.name] handed \the [I.name] to [src.name].")
src.visible_message(src,"[usr.name] handed \the [I.name] to [src.name].")
if("No")
action_message(src,"[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
src.visible_message(src,"[usr.name] tried to hand [I.name] to [src.name] but [src.name] didn't want it.")
else
usr << "[src.name]\s hands are full."
proc/action_message(var/mob/living/carbon/A,var/message)
if (message != "")
if (1 & 1)
for (var/mob/O in viewers(A.loc, null))
O.show_message(message, 1)
else if (1 & 2)
for (var/mob/O in hearers(A.loc, null))
O.show_message(message, 1)
else if (message != "")
if (1 & 1)
for (var/mob/O in viewers(A, null))
O.show_message(message, 1)
else if (1 & 2)
for (var/mob/O in hearers(A, null))
O.show_message(message, 1)
usr << "[src.name]\s hands are full."