diff options
author | Fate <fate.tmw@googlemail.com> | 2008-11-08 06:33:00 +0000 |
---|---|---|
committer | Fate <fate.tmw@googlemail.com> | 2008-11-08 06:33:00 +0000 |
commit | 74b8e841fcaf7454fa677bf6225036f4d2ebaa26 (patch) | |
tree | 50595eb08c870e07aef5595bcb5bb5ff20dae4b8 /src | |
parent | 0b6f8a2561b67cf9731525887ed2bcaf2910bb0a (diff) | |
download | tmwa-74b8e841fcaf7454fa677bf6225036f4d2ebaa26.tar.gz tmwa-74b8e841fcaf7454fa677bf6225036f4d2ebaa26.tar.bz2 tmwa-74b8e841fcaf7454fa677bf6225036f4d2ebaa26.tar.xz tmwa-74b8e841fcaf7454fa677bf6225036f4d2ebaa26.zip |
* Changed @setmagic parameter sequence (character name now goes last) to better conform to other commands
Diffstat (limited to 'src')
-rw-r--r-- | src/map/atcommand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 31fd0fe..fd0acc5 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -7826,8 +7826,8 @@ atcommand_set_magic(const int fd, struct map_session_data* sd, memset(character, '\0', sizeof(character)); - if (!message || !*message || sscanf(message, "%99s %19s %i", character, magic_type, &value) < 1) { - clif_displaymessage(fd, "Usage: @setmagic <char_name> <school> <value>, where <school> is either `magic', one of the school names, or `all'."); + if (!message || !*message || sscanf(message, "%19s %i %99s", magic_type, &value, character) < 1) { + clif_displaymessage(fd, "Usage: @setmagic <school> <value> <char-name>, where <school> is either `magic', one of the school names, or `all'."); return -1; } |