shithub: choc

Download patch

ref: 3ae01da38ef180a53cbadbedaba8b38fb448fbd3
parent: 2fe30c8eb736087233409b4aea28fe36e3314517
author: mfrancis95 <[email protected]>
date: Sun Dec 8 17:27:43 EST 2019

Remove unnecessary checks in EV_DoLockedDoor

--- a/src/doom/p_doors.c
+++ b/src/doom/p_doors.c
@@ -209,8 +209,6 @@
     {
       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 @@
 	
       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 @@
 	
       case 136:	// Yellow Lock
       case 137:
-	if ( !p )
-	    return 0;
 	if (!p->cards[it_yellowcard] &&
 	    !p->cards[it_yellowskull])
 	{