diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-29 15:36:33 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-29 15:36:33 +0000 |
commit | eb905a28219dc7af2669b8b0db8415c3e8c4ab23 (patch) | |
tree | 0f70ec07541e8448808ba17417e168fec81c848d /src/game-server/command.cpp | |
parent | 26b3e1094d85ef89c90376688000836c8ee43979 (diff) | |
download | manaserv-eb905a28219dc7af2669b8b0db8415c3e8c4ab23.tar.gz manaserv-eb905a28219dc7af2669b8b0db8415c3e8c4ab23.tar.bz2 manaserv-eb905a28219dc7af2669b8b0db8415c3e8c4ab23.tar.xz manaserv-eb905a28219dc7af2669b8b0db8415c3e8c4ab23.zip |
Fixed handling of account levels.
Diffstat (limited to 'src/game-server/command.cpp')
-rw-r--r-- | src/game-server/command.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/command.cpp b/src/game-server/command.cpp index 342a14fd..41bee298 100644 --- a/src/game-server/command.cpp +++ b/src/game-server/command.cpp @@ -85,9 +85,9 @@ template<> struct Argument< MonsterClass * > struct Command { char const *name; - char type[4]; void (*handler)(void (*f)(), Character *, intptr_t[]); void (*target)(); + char type[4]; unsigned char level; }; @@ -254,7 +254,7 @@ void runCommand(Character *ch, std::string const &text) } } - if (!c || c->level < ch->getAccountLevel()) + if (!c || c->level > ch->getAccountLevel()) { // No such command or no sufficient rights. return; |