shithub: choc

Download patch

ref: 76fa96e19a7d54993c6df0ffe9076d38655d9ad4
parent: f7a14366353e4b8f0bb18595234e6833a57f5738
author: Julia Nechaevskaya <julia.nechaevskaya@live.com>
date: Thu Jan 9 13:51:49 EST 2020

Add missing `else`, bind Tome to Backspace (127) by default

--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -453,7 +453,7 @@
         gamekeydown[key_arti_tome] = false;
         cmd->arti = arti_tomeofpower;
     }
-    if (gamekeydown[key_arti_quartz] && !cmd->arti
+    else if (gamekeydown[key_arti_quartz] && !cmd->arti
         && (players[consoleplayer].mo->health < MAXHEALTH))
     {
         gamekeydown[key_arti_quartz] = false;
--- a/src/m_controls.c
+++ b/src/m_controls.c
@@ -57,7 +57,7 @@
 int key_arti_quartz = 0;
 int key_arti_urn = 0;
 int key_arti_bomb = 0;
-int key_arti_tome = 0;
+int key_arti_tome = 127;
 int key_arti_ring = 0;
 int key_arti_chaosdevice = 0;
 int key_arti_shadowsphere = 0;