rend: improve sel item rendering

isolation_bkp/dynres
Dominik Madarász 2022-08-09 17:17:12 +02:00
parent d0d69e7039
commit a2810b2a18
1 changed files with 2 additions and 1 deletions

View File

@ -149,9 +149,10 @@ void platform_input() {
}
inv_keystate *inv = (inv_is_storage_action) ? &storage_inv : &player_inv;
inv_keystate *inv2 = (!inv_is_storage_action) ? &storage_inv : &player_inv;
// NOTE(zaklaus): don't perform picking if we manipulate our inventories
pick = (inv_is_inside||inv->item_is_held) ? false : IsMouseButtonDown(MOUSE_LEFT_BUTTON);
pick = (inv_is_inside||inv->item_is_held||inv2->item_is_held) ? false : IsMouseButtonDown(MOUSE_LEFT_BUTTON);
game_keystate_data in_data = {
.x = x,