Skip to content

Commit

Permalink
Dragging: Don't allow using non-interactive items by dropping them
Browse files Browse the repository at this point in the history
Was broken in commit f704006.

Fixes: issue #1011
  • Loading branch information
dscharrer committed Apr 10, 2022
1 parent 2a72695 commit 996f448
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG
@@ -1,6 +1,10 @@

= Arx Libertatis 1.2.1 (TBD) =

Gameplay:

* Fixed being able to use items multiple times by dropping them on the player book (bug #1011)

Audio:

* Fixed missing death screams for most NPCs (bug #1579)
Expand Down
2 changes: 1 addition & 1 deletion src/gui/Dragging.cpp
Expand Up @@ -218,7 +218,7 @@ void updateDraggedEntity() {
return;
}
if(ARX_INTERFACE_MouseInBook()) {
if(drop && g_playerBook.currentPage() == BOOKMODE_STATS) {
if(drop && g_playerBook.currentPage() == BOOKMODE_STATS && (entity->gameFlags & GFLAG_INTERACTIVITY)) {
SendIOScriptEvent(entities.player(), entity, SM_INVENTORYUSE);
COMBINE = NULL;
}
Expand Down

0 comments on commit 996f448

Please sign in to comment.