From 3de176cc587c4e0601c3c3f5a049e30db6bd2c17 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 22 Dec 2010 16:30:23 +0200 Subject: crafting system! --- src/main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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) -- cgit v1.2.3