summaryrefslogtreecommitdiff
path: root/src/map/magic-expr.c
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@NOSPAM@hotmail.com>2009-07-20 17:32:14 +1200
committerDennis Friis <peavey@inspircd.org>2009-07-26 01:23:10 +0200
commit2a93e0b7396b78d5a09927a552dd05e862277b50 (patch)
tree07021494a238dd24556baac8dd0f4335735fc671 /src/map/magic-expr.c
parent987d06fb3a6eafe1ade14269874b37170570cde9 (diff)
downloadtmwa-2a93e0b7396b78d5a09927a552dd05e862277b50.tar.gz
tmwa-2a93e0b7396b78d5a09927a552dd05e862277b50.tar.bz2
tmwa-2a93e0b7396b78d5a09927a552dd05e862277b50.tar.xz
tmwa-2a93e0b7396b78d5a09927a552dd05e862277b50.zip
Alter fun_is_gm_invisible to a more generic fun_status_option
This function now accepts an integer as a second argument for a bitmask, and should be able to be used for other status options now too.
Diffstat (limited to 'src/map/magic-expr.c')
-rw-r--r--src/map/magic-expr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/magic-expr.c b/src/map/magic-expr.c
index 2f52be5..c136a17 100644
--- a/src/map/magic-expr.c
+++ b/src/map/magic-expr.c
@@ -954,9 +954,9 @@ fun_running_status_update(env_t *env, int args_nr, val_t *result, val_t *args)
}
static int
-fun_is_gm_invisible(env_t *env, int args_nr, val_t *result, val_t *args)
+fun_status_option(env_t *env, int args_nr, val_t *result, val_t *args)
{
- RESULTINT = ((((struct map_session_data *)ARGENTITY(0))->status.option & 4096) != 0);
+ RESULTINT = ((((struct map_session_data *)ARGENTITY(0))->status.option & ARGINT(0)) != 0);
return 0;
}
@@ -1186,7 +1186,7 @@ static fun_t functions[] = {
{ "count_item", "e.", 'i', fun_count_item },
{ "line_of_sight", "ll", 'i', fun_line_of_sight },
{ "running_status_update", "ei", 'i', fun_running_status_update },
- { "is_gm_invisible", "e", 'i', fun_is_gm_invisible },
+ { "status_option", "ei", 'i', fun_status_option },
{ "element", "e", 'i', fun_element },
{ "element_level", "e", 'i', fun_element_level },
{ "has_shroud", "e", 'i', fun_has_shroud },