From 9bf87677a44b2f889099814bdc21165e2b1f8481 Mon Sep 17 00:00:00 2001 From: Phew Date: Sun, 15 Mar 2026 22:30:39 +0100 Subject: [PATCH] If player is dead, don't spawn it --- TWANG32/Player.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/TWANG32/Player.h b/TWANG32/Player.h index fe3ef5e..acfa526 100644 --- a/TWANG32/Player.h +++ b/TWANG32/Player.h @@ -93,8 +93,13 @@ void Player::Kill(){ } void Player::Spawn(int pos){ - captured = false; - moveto(pos); + if (_lives <= 0) { + // Serial.printf("Player %d has no life. Not Spawning\n", _id); + captured = true; + } else { + captured = false; + moveto(pos); + } } int Player::Lives() const{