mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Fix spawnpoints calculation
This commit is contained in:
parent
848bbf543d
commit
6db4323daf
|
@ -142,7 +142,7 @@ bool IGameController::OnEntity(int Index, vec2 Pos, int Layer, int Flags, int Nu
|
||||||
{
|
{
|
||||||
int Type = Index - ENTITY_SPAWN;
|
int Type = Index - ENTITY_SPAWN;
|
||||||
m_aaSpawnPoints[Type][m_aNumSpawnPoints[Type]] = Pos;
|
m_aaSpawnPoints[Type][m_aNumSpawnPoints[Type]] = Pos;
|
||||||
m_aNumSpawnPoints[Type] = minimum(m_aNumSpawnPoints[Type], (int)(sizeof(m_aaSpawnPoints[0]) / sizeof(m_aaSpawnPoints[0][0]) - 1));
|
m_aNumSpawnPoints[Type] = minimum(m_aNumSpawnPoints[Type] + 1, (int)(sizeof(m_aaSpawnPoints[0]) / sizeof(m_aaSpawnPoints[0][0])));
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(Index == ENTITY_DOOR)
|
else if(Index == ENTITY_DOOR)
|
||||||
|
|
Loading…
Reference in a new issue