From 36383ebd1423d2c8f6e0495046de27708160109c Mon Sep 17 00:00:00 2001 From: shennetsind Date: Tue, 7 May 2013 19:02:38 -0300 Subject: Cart Fix cart 'items' button no longer remains visible after the cart has been removed. -- Special Thanks to Wolfed. Improved status change end, now only sends the termination packet to those that matter, as opposed to always sending to those nearby, and made it smaller. Made possible thanks to super awesome Yommy :3 Signed-off-by: shennetsind --- src/map/atcommand.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 5b82666fb..33e0d03cb 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2244,7 +2244,10 @@ ACMD(displaystatus) if (i < 2) flag = 1; if (i < 3) tick = 0; - clif->status_change(&sd->bl, type, flag, tick, val1, val2, val3); + if( flag == 0 ) + clif->sc_end(&sd->bl,sd->bl.id,AREA,type); + else + clif->status_change(&sd->bl, type, flag, tick, val1, val2, val3); return true; } -- cgit v1.2.3-60-g2f50