diff Party.cpp @ 1980:c1c74df0a33e

changing most of auto types to their actual types
author Grumpy7
date Wed, 30 Oct 2013 00:47:37 -0700
parents dd9d4b7c1199
children 84fa3c83d63f
line wrap: on
line diff
--- a/Party.cpp	Mon Oct 28 22:16:42 2013 -0700
+++ b/Party.cpp	Wed Oct 30 00:47:37 2013 -0700
@@ -45,7 +45,7 @@
 
   for (unsigned int i = 0; i < pNPCStats->uNumNewNPCs; ++i)
   {
-    auto npc = pNPCStats->pNewNPCData + i;
+    NPCData* npc = &pNPCStats->pNewNPCData[i];
     if (npc->Hired() &&
         (!pHirelings[0].pName || strcmp(npc->pName, pHirelings[0].pName)))
     {
@@ -621,14 +621,14 @@
   this->field_708 = 15;
   this->field_0 = 25;
 
-  for (auto playerId = 0; playerId < 4; playerId++)
+  for (int playerId = 0; playerId < 4; playerId++)
   {
-    for (auto buffId = 0; buffId < 24; buffId++)
+    for (int buffId = 0; buffId < 24; buffId++)
     {
       this->pPlayers[playerId].pPlayerBuffs[buffId].Reset();
     }
   }
-  for (auto buffId = 0; buffId < 20; buffId++)
+  for (int buffId = 0; buffId < 20; buffId++)
   {
     this->pPartyBuffs[buffId].Reset();
   }
@@ -644,7 +644,7 @@
     Player* player = &pPlayers[i];
     player->uExpressionTimePassed += (unsigned short)pMiscTimer->uTimeElapsed;
 
-    auto condition = player->GetMajorConditionIdx();
+    uint condition = player->GetMajorConditionIdx();
     if (condition == Condition_Good || condition == Condition_Zombie)
     {
       if (player->uExpressionTimePassed < player->uExpressionTimeLength)