diff options
Diffstat (limited to 'src/emap/atcommand.c')
-rw-r--r-- | src/emap/atcommand.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c index b7acb4a..7c3f345 100644 --- a/src/emap/atcommand.c +++ b/src/emap/atcommand.c @@ -129,3 +129,14 @@ ACMD2(slide) unit->movepos(&sd->bl, x, y, 1, 0); return true; } + +ACMD1(mapExit) +{ + int code = 0; + if (!*message || sscanf(message, "%5d", &code) < 1) + code = 0; + + map->retval = code; + map->do_shutdown(); + return true; +} |