Add quickslots

This commit is contained in:
Andre Schweiger 2015-12-28 23:42:52 +01:00
parent ccdb63fb1e
commit a35610d9a0
6 changed files with 48 additions and 7 deletions

View file

@ -409,9 +409,7 @@ void tickMenu(int menu){
median = player.p.inv->items[curInvSel]; // create copy of item.
removeItemFromInventory(curInvSel, player.p.inv); // remove original
pushItemToInventoryFront(median, player.p.inv); // add copy to front
player.p.activeItem = &player.p.inv->items[0]; // active item = copy.
if(player.p.activeItem->id > 27 && player.p.activeItem->id < 34) player.p.isCarrying = true;
else player.p.isCarrying = false;
playerSetActiveItem(&player.p.inv->items[0]); // active item = copy.
}
currentMenu = MENU_NONE;
}