mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-28 00:10:48 -07:00
Use Player.deathDelay + 1 instead of magic number (#4344)
This commit is contained in:
parent
634d9d1a40
commit
32a1d91faf
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue