- [NEW] Ja perd vides, i ja es veuen en el marcador
This commit is contained in:
@@ -716,6 +716,9 @@ namespace actor
|
||||
vec3_t max = room::getMax();
|
||||
|
||||
if ( (act->push & PUSH_KILL) && (act->flags & FLAG_HERO) ) {
|
||||
const int lives = hero::getLives()-1;
|
||||
hero::setLives(lives);
|
||||
// [TODO] If lives == 0 anar a la pantalla de game-over o cat's life
|
||||
actor_t *act = actor::find("HERO");
|
||||
act = actor::replaceWithTemplate(act, "EXPLOSION");
|
||||
actor_t *act2 = actor::createFromTemplate("EXPLOSION");
|
||||
|
||||
Reference in New Issue
Block a user