1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-07-14 16:55:52 +00:00

Update inventory.rs

added a single comment
This commit is contained in:
Edward Stuckey 2023-11-11 15:11:10 -05:00
parent c35663e6bf
commit 847c304a33

View file

@ -163,6 +163,7 @@ impl GameEntity<(&mut Context, &mut Player, &mut Inventory, &mut HUD)> for Inven
}
}
// we should not move from the weapon row if there are no items
if (player.controller.trigger_up() || player.controller.trigger_down()) && self.item_count > 0 {
self.focus = InventoryFocus::Items;
state.control_flags.set_ok_button_disabled(false);