From 96a0bb83a3c679b376c6ee3c17c3c732d5f9b8f7 Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 5 Mar 2017 12:19:34 -0500 Subject: fix code style in buildin_addtimer --- src/map/script.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/map/script.c b/src/map/script.c index a7e27fc1b..950242e77 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -10785,19 +10785,21 @@ BUILDIN(donpcevent) *------------------------------------------*/ BUILDIN(addtimer) { - int tick = script_getnum(st,2); + int tick = script_getnum(st, 2); const char* event = script_getstr(st, 3); struct map_session_data *sd; script->check_event(st, event); sd = script->rid2sd(st); - if( sd == NULL ) + + if (sd == NULL) return true; - if (!pc->addeventtimer(sd,tick,event)) { - ShowWarning("buildin_addtimer: Event timer is full, can't add new event timer. (cid:%d timer:%s)\n",sd->status.char_id,event); + if (!pc->addeventtimer(sd, tick, event)) { + ShowWarning("script:addtimer: Event timer is full, can't add new event timer. (cid:%d timer:%s)\n", sd->status.char_id, event); return false; } + return true; } /*========================================== -- cgit v1.2.3-70-g09d2