From f8ec8998a1c2c6ef65a3691d3c54ce551e00b639 Mon Sep 17 00:00:00 2001 From: "s3607057 (Angus Niven)" Date: Sat, 2 Nov 2019 19:56:59 +1100 Subject: [PATCH] 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. --- Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs b/Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs index 7b32033..036f560 100644 --- a/Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs +++ b/Assets/Scripts/GameMode/ColorGameMode/RacetrackGameMode.cs @@ -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);