From a76908de39c38dcb65afb6d1ab628bc414abd483 Mon Sep 17 00:00:00 2001 From: Lance Date: Mon, 1 May 2006 05:48:06 +0000 Subject: * Optimized fake npc system. Added npc_checknear back to npc_buysellsel. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6426 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index f9a87e1be..eeb055ed0 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -10909,20 +10909,7 @@ int run_script_main(struct script_state *st) st->state = RUN; } } else { - struct block_list *bl; st->state = RUN; - if(st->oid && st->rid && (bl = map_id2bl(st->oid))){ - // Perfomance impact, use buildin_doevent instead for interactive item scripts. - /*if(bl->type == BL_PC){ - clif_sendfakenpc(((TBL_PC *)bl),dummy_npc_id); - } else */ - if(bl->type == BL_NPC){ - if((bl = map_id2bl(st->rid))){ // Should be type PC now - if(npc_checknear(((TBL_PC *)bl), st->oid)) - clif_sendfakenpc(((struct map_session_data *)bl),st->oid); - } - } - } } while( st->state == RUN) { c= get_com((unsigned char *) st->script,&st->pos); -- cgit v1.2.3-70-g09d2