From 3ecde465534c93315a1f88430129e8400f4d9fe2 Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 24 Oct 2007 12:14:18 +0000 Subject: * Cleaned up some messy guild code (more to come) * Cleaned up the mail code, no more pointless dynamic allocation * Added upgrade_svn11548.sql to convert the mail table to new format * Updated vs7 and vs6 project files * Increased the max. send buffer size to 5M since 1M is not enough * Please complain if something stops working ^^; git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11571 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index b2de0af2a..87ceb8afb 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -337,19 +337,16 @@ int npc_event_do_clock(int tid, unsigned int tick, int id, int data) memcpy(&ev_tm_b,t,sizeof(ev_tm_b)); return c; } + /*========================================== * OnInitイベント実行(&時計イベント開始) *------------------------------------------*/ -int npc_event_do_oninit(void) +void npc_event_do_oninit(void) { -// int c = npc_event_doall("OnInit"); - ShowStatus("Event '"CL_WHITE"OnInit"CL_RESET"' executed with '" - CL_WHITE"%d"CL_RESET"' NPCs.\n",npc_event_doall("OnInit")); - - add_timer_interval(gettick()+100, - npc_event_do_clock,0,0,1000); + int count = npc_event_doall("OnInit"); + ShowStatus("Event '"CL_WHITE"OnInit"CL_RESET"' executed with '"CL_WHITE"%d"CL_RESET"' NPCs."CL_CLL"\n", count); - return 0; + add_timer_interval(gettick()+100,npc_event_do_clock,0,0,1000); } /*========================================== -- cgit v1.2.3-70-g09d2