Clean up some code in p_setup.c

This commit is contained in:
James R 2022-11-21 11:50:55 -08:00
parent 49bb2a377e
commit 37edae71fa

View file

@ -700,10 +700,13 @@ static void P_SpawnMapThings(boolean spawnemblems)
for (i = 0, mt = mapthings; i < nummapthings; i++, mt++) for (i = 0, mt = mapthings; i < nummapthings; i++, mt++)
{ {
if (mt->type == 1700 // MT_AXIS switch (mt->type)
|| mt->type == 1701 // MT_AXISTRANSFER {
|| mt->type == 1702) // MT_AXISTRANSFERLINE case 1700: // MT_AXIS
continue; // These were already spawned case 1701: // MT_AXISTRANSFER
case 1702: // MT_AXISTRANSFERLINE
continue; // These were already spawned
}
if (mt->type == mobjinfo[MT_BATTLECAPSULE].doomednum) if (mt->type == mobjinfo[MT_BATTLECAPSULE].doomednum)
continue; // This will spawn later continue; // This will spawn later
@ -5952,6 +5955,7 @@ static void P_ConvertBinaryLinedefTypes(void)
lines[i].args[1] |= TMBOT_FORCEDIR; lines[i].args[1] |= TMBOT_FORCEDIR;
lines[i].args[2] = sides[lines[i].sidenum[0]].textureoffset / FRACUNIT; lines[i].args[2] = sides[lines[i].sidenum[0]].textureoffset / FRACUNIT;
break;
default: default:
break; break;
} }