]> git.jsancho.org Git - lugaru.git/commitdiff
Pass killeveryone maps when friends are alive
authorJavier Sancho <jsf@jsancho.org>
Wed, 21 Feb 2018 15:39:37 +0000 (16:39 +0100)
committerJavier Sancho <jsf@jsancho.org>
Wed, 21 Feb 2018 15:39:37 +0000 (16:39 +0100)
Source/GameTick.cpp

index c627e514765cd71dcdff4a7d741f3b501d2f0ea3..dbd6f0e3977541aba323b8ae2e6668b188aecd7f 100644 (file)
@@ -4654,7 +4654,7 @@ void Game::TickOnceAfter()
             }
             alldead = true;
             for (unsigned i = 1; i < Person::players.size(); i++) {
-                if (!Person::players[i]->dead && Person::players[i]->howactive < typedead1) {
+              if (!Person::players[i]->dead && Person::players[i]->howactive < typedead1 && !Person::players[i]->isPlayerFriend()) {
                     alldead = false;
                     break;
                 }