diff options
author | foruken <foruken@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-30 18:09:09 +0000 |
---|---|---|
committer | foruken <foruken@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-30 18:09:09 +0000 |
commit | 3309104cd813327b3a060b0549fb8f720ba91481 (patch) | |
tree | 935454ee82fc616a19c29d4375f6d9f7e5cc70c7 /src/map | |
parent | eaa6cf74faa5a5c53a2a6d620a3e8ca364d34521 (diff) | |
download | hercules-3309104cd813327b3a060b0549fb8f720ba91481.tar.gz hercules-3309104cd813327b3a060b0549fb8f720ba91481.tar.bz2 hercules-3309104cd813327b3a060b0549fb8f720ba91481.tar.xz hercules-3309104cd813327b3a060b0549fb8f720ba91481.zip |
Added year day return in gettime function. gettime(8) returns 1~366
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5816 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 5a9b08b91..acf09a796 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5275,6 +5275,9 @@ int buildin_gettime(struct script_state *st) /* Asgard Version */ case 7://Year(20xx)
push_val(st->stack,C_INT,t->tm_year+1900);
break;
+ case 8://Year Day(01~366)
+ push_val(st->stack,C_INT,t->tm_yday+1);
+ break;
default://(format error)
push_val(st->stack,C_INT,-1);
break;
|