diff options
author | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-03-05 03:32:59 +0000 |
---|---|---|
committer | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-03-05 03:32:59 +0000 |
commit | d811a539474a6eeb4439a4204f3d96551a5b7c1e (patch) | |
tree | 66b2482085965598845a0e58fa04d1bcdb6dd5a1 /src/game-server/item.cpp | |
parent | f0d969eba1840362daad9debc93907c270b22ea5 (diff) | |
download | manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.tar.gz manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.tar.bz2 manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.tar.xz manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.zip |
Added an abstrart base class for characterdata, in order to use the same serialize and deserialize functions on both the accountserver and the gameserver.
Diffstat (limited to 'src/game-server/item.cpp')
-rw-r--r-- | src/game-server/item.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game-server/item.cpp b/src/game-server/item.cpp index 7eb9afb6..9345e33e 100644 --- a/src/game-server/item.cpp +++ b/src/game-server/item.cpp @@ -32,10 +32,7 @@ bool ItemClass::use(Being *itemUser) // Calling a script if scriptName != "" if (!mScriptName.empty()) { - if (runScript(itemUser) && usedSuccessfully) - return true; - else - return false; + return (runScript(itemUser) && usedSuccessfully); } else return usedSuccessfully; |