Browse Source

Small fix to hopefully fix a bug where people respawn on the same block.

master
s3607057 (Angus Niven) 5 years ago
parent
commit
5f09ba29be
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs

+ 3
- 1
Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs View File

@ -190,7 +190,9 @@ public class RacetrackGameMode : GameMode
//Debug.Log("Respawn location = " + respawnBlock.transform.position); //Debug.Log("Respawn location = " + respawnBlock.transform.position);
player.character.respawnCharacter(respawnBlock); player.character.respawnCharacter(respawnBlock);
respawnBlocks.Remove(respawnBlock); //Then we remove it from the list for the next player
respawnBlocks.RemoveAt(respawnIndex); //Then we remove it from the list for the next player
//respawnBlocks.Remove(respawnBlock); //Then we remove it from the list for the next player
} }
} }
} }

Loading…
Cancel
Save