Remove redundant code

This commit is contained in:
smallmodel committed 2024-12-17 22:50:25 +01:00
1 parent 16166a36b5
commit 4e69d7a78a
1 file changed
+1 -2
+1 -2
View File
@@ -457,8 +457,7 @@ PlayerStart *DM_Team::GetRandomSpawnpointWithMetric(
vNewSpawn, player->mins, player->maxs, vEnd, player, MASK_PLAYERSOLID, qfalse, "TempSpawnPoint"
);
if (!trace.allsolid && !trace.startsolid && trace.fraction != 1.0f && trace.fraction != 1.0f
&& trace.plane.dist >= 0.8f) {
if (!trace.allsolid && !trace.startsolid && trace.fraction != 1.0f && trace.plane.dist >= 0.8f) {
points[numSpots].spawnpoint = new PlayerStart;
points[numSpots].spawnpoint->setOrigin(trace.endpos);
points[numSpots].spawnpoint->setAngles(spot->angles);