From eb905a28219dc7af2669b8b0db8415c3e8c4ab23 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Wed, 29 Aug 2007 15:36:33 +0000 Subject: Fixed handling of account levels. --- src/game-server/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game-server/command.cpp') diff --git a/src/game-server/command.cpp b/src/game-server/command.cpp index 342a14f..41bee29 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; -- cgit