diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-22 16:30:23 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-22 16:30:23 +0200 |
commit | 3de176cc587c4e0601c3c3f5a049e30db6bd2c17 (patch) | |
tree | 0a85d68c29e1354acda46e0c4e46e80a6f891039 /src/main.cpp | |
parent | 2e41a5e304d9c35ece851b8a65482bca8784b582 (diff) | |
download | minetest-3de176cc587c4e0601c3c3f5a049e30db6bd2c17.tar.gz minetest-3de176cc587c4e0601c3c3f5a049e30db6bd2c17.tar.bz2 minetest-3de176cc587c4e0601c3c3f5a049e30db6bd2c17.zip |
crafting system!
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7fecbe3bd..cbca1df34 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2304,7 +2304,16 @@ int main(int argc, char *argv[]) client.getLocalInventory(local_inventory);
quick_inventory->setSelection(g_selected_item);
quick_inventory->update();
- inventoryMenu->update();
+ }
+
+ /*
+ Send actions returned by the inventory menu
+ */
+ while(InventoryAction *a = inventoryMenu->getNextAction())
+ {
+ client.sendInventoryAction(a);
+ // Eat it
+ delete a;
}
if(input_guitext != NULL)
|