mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix temporary spawn spots being incorrectly ignored
This commit is contained in:
parent
4e69d7a78a
commit
3b1b994152
1 changed files with 2 additions and 0 deletions
|
@ -462,6 +462,7 @@ PlayerStart *DM_Team::GetRandomSpawnpointWithMetric(
|
|||
points[numSpots].spawnpoint->setOrigin(trace.endpos);
|
||||
points[numSpots].spawnpoint->setAngles(spot->angles);
|
||||
points[numSpots].fMetric = MetricFunction(vNewSpawn, this, player);
|
||||
numSpots++;
|
||||
|
||||
if (numSpots >= (sizeof(points) / sizeof(points[0]))) {
|
||||
break;
|
||||
|
@ -494,6 +495,7 @@ PlayerStart *DM_Team::GetRandomSpawnpointWithMetric(
|
|||
if (!SpotWouldTelefrag(spot->origin)) {
|
||||
points[numSpots].spawnpoint = spot;
|
||||
points[numSpots].fMetric = MetricFunction(spot->origin, this, player);
|
||||
numSpots++;
|
||||
|
||||
if (numSpots >= (sizeof(points) / sizeof(points[0]))) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue