summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-03-05 12:19:34 -0500
committergumi <mekolat@users.noreply.github.com>2017-03-05 13:31:54 -0500
commit96a0bb83a3c679b376c6ee3c17c3c732d5f9b8f7 (patch)
tree47c26ffbd58592e3b25788698be402f142ce9294 /src/map/script.c
parent8a5446eb2763355ce1a4513e30debbd86b7d0d75 (diff)
downloadhercules-96a0bb83a3c679b376c6ee3c17c3c732d5f9b8f7.tar.gz
hercules-96a0bb83a3c679b376c6ee3c17c3c732d5f9b8f7.tar.bz2
hercules-96a0bb83a3c679b376c6ee3c17c3c732d5f9b8f7.tar.xz
hercules-96a0bb83a3c679b376c6ee3c17c3c732d5f9b8f7.zip
fix code style in buildin_addtimer
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c10
1 files changed, 6 insertions, 4 deletions
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;
}
/*==========================================