shithub: choc

Download patch

ref: 779653135172cfce29dd395a7ca93332bd637c09
parent: 092ed7a561b4d6527ec9d1761bd71f9d0f804c7a
author: Simon Howard <[email protected]>
date: Sat Sep 21 13:55:16 EDT 2013

Fix mouse "use" button in Heretic (thanks mooseman2).

Subversion-branch: /branches/v2-branch
Subversion-revision: 2678

--- a/src/hexen/g_game.c
+++ b/src/hexen/g_game.c
@@ -448,7 +448,7 @@
         || joybuttons[joybfire])
         cmd->buttons |= BT_ATTACK;
 
-    if (gamekeydown[key_use] || joybuttons[joybuse])
+    if (gamekeydown[key_use] || joybuttons[joybuse] || mousebuttons[mousebuse])
     {
         cmd->buttons |= BT_USE;
         dclicks = 0;            // clear double clicks if hit use button