diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-08-09 00:17:02 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-08-10 23:15:00 +0200 |
commit | 8da91f63f710a012be339ea2a162a6df765614b2 (patch) | |
tree | 4c6599723e07c0f2d68d3eca0c4431742f63bb29 /src | |
parent | 150e1a9a59aaabe7f72e24889616d301e9d804f8 (diff) | |
download | manaserv-8da91f63f710a012be339ea2a162a6df765614b2.tar.gz manaserv-8da91f63f710a012be339ea2a162a6df765614b2.tar.bz2 manaserv-8da91f63f710a012be339ea2a162a6df765614b2.tar.xz manaserv-8da91f63f710a012be339ea2a162a6df765614b2.zip |
Fixed item_drop insertion of object
Diffstat (limited to 'src')
-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 a759e0b4..5e0f93c9 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -2173,7 +2173,6 @@ static int item_class_on(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) { @@ -2188,8 +2187,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; } /** |