summaryrefslogtreecommitdiff
path: root/src/g_game.c
diff options
context:
space:
mode:
authorSimon Howard2011-03-28 00:24:47 +0000
committerSimon Howard2011-03-28 00:24:47 +0000
commit6e099632c653dd42dbe1f719c5887844091da0cc (patch)
treef57d3941d214840aede964a93e62b4d55a4d07b5 /src/g_game.c
parenta69af94b58ac491c8a215ebe2f81b3a521b833f4 (diff)
downloadchocolate-doom-6e099632c653dd42dbe1f719c5887844091da0cc.tar.gz
chocolate-doom-6e099632c653dd42dbe1f719c5887844091da0cc.tar.bz2
chocolate-doom-6e099632c653dd42dbe1f719c5887844091da0cc.zip
Fix weapon cycling from the shotgun to the chaingun in Doom 1 (thanks
Alexandre Xavier). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2311
Diffstat (limited to 'src/g_game.c')
-rw-r--r--src/g_game.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/g_game.c b/src/g_game.c
index f91e630e..933a1b7b 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -428,6 +428,13 @@ int G_CmdChecksum (ticcmd_t* cmd)
static boolean WeaponSelectable(weapontype_t weapon)
{
+ // Can't select the super shotgun in Doom 1.
+
+ if (weapon == wp_supershotgun && gamemission == doom)
+ {
+ return false;
+ }
+
// Can't select a weapon if we don't own it.
if (!players[consoleplayer].weaponowned[weapon])