diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-08-10 23:17:02 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-08-10 23:17:02 +0200 |
commit | da18ccd0dc403c20420ed3c3027b2be39ff01efc (patch) | |
tree | 21123ddc733c02c738c9ec3b38c198a74c4a8ae4 /src/scripting/lua.cpp | |
parent | 1ccf0958ece7fbfde3761207f3238719e0585105 (diff) | |
parent | 8da91f63f710a012be339ea2a162a6df765614b2 (diff) | |
download | manaserv-da18ccd0dc403c20420ed3c3027b2be39ff01efc.tar.gz manaserv-da18ccd0dc403c20420ed3c3027b2be39ff01efc.tar.bz2 manaserv-da18ccd0dc403c20420ed3c3027b2be39ff01efc.tar.xz manaserv-da18ccd0dc403c20420ed3c3027b2be39ff01efc.zip |
Merge branch 'master' into lpc2012
Diffstat (limited to 'src/scripting/lua.cpp')
-rw-r--r-- | src/scripting/lua.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 1828e515..6285f382 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -2179,7 +2179,6 @@ static int item_class_attacks(lua_State *s) /** * drop_item(int x, int y, int id || string name[, int number]): bool * Creates an item stack on the floor. - * @Returns whether the insertion was successful. */ static int item_drop(lua_State *s) { @@ -2194,8 +2193,8 @@ static int item_drop(lua_State *s) i->setMap(map); Point pos(x, y); i->setPosition(pos); - lua_pushboolean(s, GameState::insertOrDelete(i)); - return 1; + GameState::enqueueInsert(i); + return 0; } /** |