diff options
author | Simon Howard | 2010-09-28 18:07:12 +0000 |
---|---|---|
committer | Simon Howard | 2010-09-28 18:07:12 +0000 |
commit | af6ee1723e009ff55e42fd257da03712ba7099f1 (patch) | |
tree | fb13da043f2f3ac4d19f44e7a958e99ff3346d34 /src | |
parent | 8346759db341c7ac93d62a18577f16357d25752e (diff) | |
download | chocolate-doom-af6ee1723e009ff55e42fd257da03712ba7099f1.tar.gz chocolate-doom-af6ee1723e009ff55e42fd257da03712ba7099f1.tar.bz2 chocolate-doom-af6ee1723e009ff55e42fd257da03712ba7099f1.zip |
Fix warnings about unhandled enumeration values.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2148
Diffstat (limited to 'src')
-rw-r--r-- | src/strife/p_inter.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/strife/p_inter.c b/src/strife/p_inter.c index cddd097c..9e9aea7a 100644 --- a/src/strife/p_inter.c +++ b/src/strife/p_inter.c @@ -187,6 +187,9 @@ boolean P_GiveWeapon(player_t* player, weapontype_t weapon, boolean dropped) case wp_mauler: player->weaponowned[wp_torpedo] = true; break; + + default: + break; } // check for the standard weapons only @@ -997,6 +1000,9 @@ void P_KillMobj(mobj_t* source, mobj_t* target) if(!deathmatch) players[consoleplayer].message = plrkilledmsg; return; + + default: + break; } // villsa [STRIFE] toss out item @@ -1027,9 +1033,10 @@ static boolean P_IsMobjBoss(mobjtype_t type) case MT_ORACLE: case MT_PRIEST: return true; - } - return false; + default: + return false; + } } |