summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAnnieRuru <jeankofannie2@gmail.com>2019-03-23 23:27:48 +0800
committerAnnieRuru <jeankofannie2@gmail.com>2019-03-23 23:27:48 +0800
commit69541a8d14809841434bdb9c131436070f57def3 (patch)
tree760ed0e3826a22631db0269e21076abf3a20e0f1 /src/map/script.c
parentae5a425420e3cafd1a9887f02ba60f972cb85ede (diff)
downloadhercules-69541a8d14809841434bdb9c131436070f57def3.tar.gz
hercules-69541a8d14809841434bdb9c131436070f57def3.tar.bz2
hercules-69541a8d14809841434bdb9c131436070f57def3.tar.xz
hercules-69541a8d14809841434bdb9c131436070f57def3.zip
white space edit
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/script.c b/src/map/script.c
index aeaf851b1..4bd1be6aa 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10604,9 +10604,9 @@ static BUILDIN(gettime)
return true;
}
-/*==========================================
+/*
* GetTimeStr("TimeFMT", Length);
- *------------------------------------------*/
+ */
static BUILDIN(gettimestr)
{
char *tmpstr;
@@ -10614,8 +10614,8 @@ static BUILDIN(gettimestr)
int maxlen;
time_t now;
- fmtstr=script_getstr(st,2);
- maxlen=script_getnum(st,3);
+ fmtstr = script_getstr(st, 2);
+ maxlen = script_getnum(st, 3);
if (script_hasdata(st, 4)) {
int timestamp = script_getnum(st, 4);
@@ -10629,11 +10629,11 @@ static BUILDIN(gettimestr)
now = time(NULL);
}
- tmpstr=(char *)aMalloc((maxlen+1)*sizeof(char));
- strftime(tmpstr,maxlen,fmtstr,localtime(&now));
- tmpstr[maxlen]='\0';
+ tmpstr = (char *)aMalloc((maxlen +1)*sizeof(char));
+ strftime(tmpstr, maxlen, fmtstr, localtime(&now));
+ tmpstr[maxlen] = '\0';
- script_pushstr(st,tmpstr);
+ script_pushstr(st, tmpstr);
return true;
}