Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
viciious committed Oct 19, 2023
1 parent 65a8904 commit 98024f1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions p_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ void P_LoadSectors (int lump)
// pop the WAD stack to point to the IWAD,
// otherwise R_FlatNumForName is going to break
W_Pop();
W_Pop();

ms = (mapsector_t *)data;
ss = sectors;
Expand Down Expand Up @@ -205,7 +204,6 @@ void P_LoadSectors (int lump)
}

W_Push();
W_Push();
}


Expand Down Expand Up @@ -669,7 +667,6 @@ D_printf ("P_SetupLevel(%s,%i)\n",lumpname,skill);
lumps[i] = lumpnum+i;
pwad.numlumps = W_GetLumpInfoSubset(li, W_GetLumpInfo(), ML_BLOCKMAP+1, lumps);

W_Push();
W_SetPWAD(&pwad, li);

/* note: most of this ordering is important */
Expand Down Expand Up @@ -712,8 +709,6 @@ D_printf ("P_SetupLevel(%s,%i)\n",lumpname,skill);

W_Pop();

W_Pop();

/* */
/* if deathmatch, randomly spawn the active players */
/* */
Expand Down

0 comments on commit 98024f1

Please sign in to comment.