commit 3ae01da38ef180a53cbadbedaba8b38fb448fbd3
Author: mfrancis95 <mikefrancis95@gmail.com>
AuthorDate: Sun Dec 8 22:27:43 2019 -0500
Commit: mfrancis95 <mikefrancis95@gmail.com>
CommitDate: Sun Dec 8 22:27:43 2019 -0500
Remove unnecessary checks in EV_DoLockedDoor
---
src/doom/p_doors.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/doom/p_doors.c b/src/doom/p_doors.c
index 6f01043d..b0947248 100644
--- a/src/doom/p_doors.c
+++ b/src/doom/p_doors.c
@@ -209,8 +209,6 @@ EV_DoLockedDoor
{
case 99: // Blue Lock
case 133:
- if ( !p )
- return 0;
if (!p->cards[it_bluecard] && !p->cards[it_blueskull])
{
p->message = DEH_String(PD_BLUEO);
@@ -221,8 +219,6 @@ EV_DoLockedDoor
case 134: // Red Lock
case 135:
- if ( !p )
- return 0;
if (!p->cards[it_redcard] && !p->cards[it_redskull])
{
p->message = DEH_String(PD_REDO);
@@ -233,8 +229,6 @@ EV_DoLockedDoor
case 136: // Yellow Lock
case 137:
- if ( !p )
- return 0;
if (!p->cards[it_yellowcard] &&
!p->cards[it_yellowskull])
{