If player is dead, don't spawn it
This commit is contained in:
@@ -93,9 +93,14 @@ void Player::Kill(){
|
||||
}
|
||||
|
||||
void Player::Spawn(int 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{
|
||||
return _lives;
|
||||
|
||||
Reference in New Issue
Block a user