From dfd9bcd2b9a77ff69d10add1f3b82566b1c87abe Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Thu, 10 Jul 2008 00:37:07 +0000 Subject: * Users can't click floating npcs directly. (quick fix for bugreport:1814) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12930 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 0b2aa773e..fec866dc0 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -8874,7 +8874,8 @@ void clif_parse_NpcClicked(int fd,struct map_session_data *sd) clif_parse_ActionRequest_sub(sd, 0x07, bl->id, gettick()); break; case BL_NPC: - npc_click(sd,(TBL_NPC*)bl); + if( bl->m != -1 )// the user can't click floating npcs directly (hack attempt) + npc_click(sd,(TBL_NPC*)bl); break; } return; -- cgit v1.2.3-70-g09d2