diff options
author | mekolat <mekolat@gmail.com> | 2015-02-28 10:34:55 -0500 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2015-02-28 10:34:55 -0500 |
commit | 697ab2d5ee8c840dba925425ddbf6eba9eb6ee44 (patch) | |
tree | 3c053e8e7baa44465fbd90e5e02682e4fd500493 /src/map/script-fun.cpp | |
parent | 6ec97dc4556e36b7a3cdf17b8684fa074529ad8b (diff) | |
download | tmwa-697ab2d5ee8c840dba925425ddbf6eba9eb6ee44.tar.gz tmwa-697ab2d5ee8c840dba925425ddbf6eba9eb6ee44.tar.bz2 tmwa-697ab2d5ee8c840dba925425ddbf6eba9eb6ee44.tar.xz tmwa-697ab2d5ee8c840dba925425ddbf6eba9eb6ee44.zip |
add freeloop builtin
Diffstat (limited to 'src/map/script-fun.cpp')
-rw-r--r-- | src/map/script-fun.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index b9b581f..8c25266 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -1123,6 +1123,25 @@ void builtin_getequipid(ScriptState *st) } /*========================================== + * freeloop + *------------------------------------------ + */ +static +void builtin_freeloop(ScriptState *st) +{ + int num; + num = conv_num(st, &AARG(0)); + if(num == 1) + { + st->freeloop = 1; + } + else + { + st->freeloop = 0; + } +} + +/*========================================== * 装備名文字列(精錬メニュー用) *------------------------------------------ */ @@ -3095,6 +3114,7 @@ BuiltinFunction builtin_functions[] = BUILTIN(gety, ""_s, 'i'), BUILTIN(getmap, ""_s, 's'), BUILTIN(mapexit, ""_s, '\0'), + BUILTIN(freeloop, "i"_s, '\0'), {nullptr, ""_s, ""_s, '\0'}, }; } // namespace map |