diff mm7_4.cpp @ 1362:d6cf8ead9242

Condition checking functions slightly renamed, some final changes in Player::SetCondition
author Grumpy7
date Mon, 15 Jul 2013 00:42:50 +0200
parents b3ac17fd12de
children 5572e7b02f45
line wrap: on
line diff
--- a/mm7_4.cpp	Sun Jul 14 23:22:43 2013 +0200
+++ b/mm7_4.cpp	Mon Jul 15 00:42:50 2013 +0200
@@ -1617,11 +1617,11 @@
       if (pParty->days_played_without_rest > 3)
         for (uint i = 0; i < 4; ++i)
         {
-          auto player = pParty->pPlayers + i;
+          Player* player = pParty->pPlayers + i;
 
           player->Zero();
 
-          if (!player->Pertified() && !player->Eradicated() && !player->Dead())
+          if (!player->IsPertified() && !player->IsEradicated() && !player->IsDead())
           {
             if (rand() % 100 < 5 * pParty->days_played_without_rest)
               player->SetCondDeadWithBlockCheck(0);