summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-20 15:50:07 +0100
committerHaru <haru@dotalux.com>2014-01-22 14:50:55 +0100
commit0b96dc2756d97048fc8d4bf2c0eca8ae2555a82e (patch)
treedd9a2d354c61b0514e8a66006187ce5930aace00 /src/map/map.c
parent1da48873bb0c9e29e53528eca04593560bcea57f (diff)
downloadhercules-0b96dc2756d97048fc8d4bf2c0eca8ae2555a82e.tar.gz
hercules-0b96dc2756d97048fc8d4bf2c0eca8ae2555a82e.tar.bz2
hercules-0b96dc2756d97048fc8d4bf2c0eca8ae2555a82e.tar.xz
hercules-0b96dc2756d97048fc8d4bf2c0eca8ae2555a82e.zip
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 <haru@dotalux.com>
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 07881ea56..33721b028 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -5316,7 +5316,7 @@ CPCMD(gm_use) {
return;
}
map->cpsd->fd = -2;
- if( !atcommand->parse(map->cpsd->fd, map->cpsd, line, 0) )
+ if( !atcommand->exec(map->cpsd->fd, map->cpsd, line, false) )
ShowInfo("HCP: '"CL_WHITE"%s"CL_RESET"' failed\n",line);
else
ShowInfo("HCP: '"CL_WHITE"%s"CL_RESET"' was used\n",line);