-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi, You must use all your ammunition after killing the last emeny. I think there is no need for the game to go on after the last enemy is dead.
The game cannot end while you are not in the END_TURN state. So we need end the turn when the last enemy dies. // Signal death of a character void GameLoop::SignalCharacterDeath (Character *character) { [..] GameMessages::GetInstance()->Add (txt); // Turn end if the playing character is dead - - if (character->IsActiveCharacter()) + if (character->IsActiveCharacter() || Game::GetInstance()->IsGameFinished()) SetState(END_TURN); } The IsGameFinished function is only checking if there is more than one team with characters left, so we can use it here. johannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (GNU/Linux) iD8DBQFF7LwhcISbegH0iVoRAl0lAJ9zeUAZjKRrCczh8KaaGi9Wv83rqgCfRQXl 1UJZEVHrPfIepvdf37xBKXk= =YZpf -----END PGP SIGNATURE----- _______________________________________________ Wormux-dev mailing list Wormux-dev@gna.org https://mail.gna.org/listinfo/wormux-dev