ref: f7a14366353e4b8f0bb18595234e6833a57f5738
parent: 22f39b5d40281dd989dfd1fc067447fa2621c2a6
author: Julia Nechaevskaya <julia.nechaevskaya@live.com>
date: Thu Jan 9 08:03:34 EST 2020
Use an existing check for arti_tomeofpower
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -447,10 +447,10 @@
}
}
}
- if (gamekeydown[127] && !cmd->arti
+ if (gamekeydown[key_arti_tome] && !cmd->arti
&& !players[consoleplayer].powers[pw_weaponlevel2])
{
- gamekeydown[127] = false;
+ gamekeydown[key_arti_tome] = false;
cmd->arti = arti_tomeofpower;
}
if (gamekeydown[key_arti_quartz] && !cmd->arti
@@ -468,11 +468,6 @@
{
gamekeydown[key_arti_bomb] = false;
cmd->arti = arti_firebomb;
- }
- else if (gamekeydown[key_arti_tome] && !cmd->arti)
- {
- gamekeydown[key_arti_tome] = false;
- cmd->arti = arti_tomeofpower;
}
else if (gamekeydown[key_arti_ring] && !cmd->arti)
{