Browse Source

Fixed issue where players could respawn floating in the air after falling off the track, if the spot they fell from was near the respawn location.

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

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

@ -155,7 +155,7 @@ public class RacetrackGameMode : GameMode
+ ", no currentPlayer = " + (currentBlock.CurrentPlayer == null));*/
if (currentBlock.is_Walkable //Are we allowed on this block?
&& !(currentBlock is Water) && !(currentBlock.isPit) //Don't respawn on top of instant traps
&& !(currentBlock is Water) && !(currentBlock.isPit) && !(currentBlock is Air) //Don't respawn on top of instant traps or in midair
&& currentBlock.CurrentPlayer == null) //Block must be unoccupied
{
respawnBlocks.Add(currentBlock);

Loading…
Cancel
Save