From 0b96dc2756d97048fc8d4bf2c0eca8ae2555a82e Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 20 Jan 2014 15:50:07 +0100 Subject: Renamed atcommand->parse to atcommand->exec - Renamed function to a more appropriate name. - Changed its last argument 'int type' to 'bool player_invoked' to make its purpose more obvious. Signed-off-by: Haru --- src/map/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 8e8f89727..adea269c7 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -12659,7 +12659,7 @@ BUILDIN(atcommand) { } } - if (!atcommand->parse(fd, sd, cmd, 0)) { + if (!atcommand->exec(fd, sd, cmd, false)) { ShowWarning("script: buildin_atcommand: failed to execute command '%s'\n", cmd); script->reportsrc(st); ret = false; @@ -17320,7 +17320,7 @@ BUILDIN(useatcmd) { cmd++; } - atcommand->parse(fd, sd, cmd, 1); + atcommand->exec(fd, sd, cmd, true); if (dummy_sd) aFree(dummy_sd); return true; } -- cgit v1.2.3-60-g2f50