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