Use Player.deathDelay + 1 instead of magic number (#4344)
This commit is contained in:
committed by
GitHub
parent
634d9d1a40
commit
32a1d91faf
@@ -343,7 +343,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
}
|
||||
|
||||
player.clearUnit();
|
||||
player.deathTimer = 61f;
|
||||
player.deathTimer = Player.deathDelay + 1f;
|
||||
build.requestSpawn(player);
|
||||
}else if(unit == null){ //just clear the unit (is this used?)
|
||||
player.clearUnit();
|
||||
@@ -369,7 +369,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
|
||||
Fx.spawn.at(player);
|
||||
player.clearUnit();
|
||||
player.deathTimer = 61f; //for instant respawn
|
||||
player.deathTimer = Player.deathDelay + 1f; //for instant respawn
|
||||
}
|
||||
|
||||
@Remote(targets = Loc.both, called = Loc.server, forward = true)
|
||||
|
||||
Reference in New Issue
Block a user