comparison UI/UICharacter.cpp @ 1861:a86c60679949

changing most of party arrays to std::arrays, some minor cleanups in actor.cpp
author Grumpy7
date Mon, 14 Oct 2013 06:32:30 +0200
parents 211dfe2d8db1
children 2233efdc8d00
comparison
equal deleted inserted replaced
1860:3186f469323a 1861:a86c60679949
1765 } 1765 }
1766 } 1766 }
1767 memset(byte_5111F6.data(), 0, sizeof(byte_5111F6)); 1767 memset(byte_5111F6.data(), 0, sizeof(byte_5111F6));
1768 for (uint i = 0; i < 4; ++i) 1768 for (uint i = 0; i < 4; ++i)
1769 { 1769 {
1770 auto player = pParty->pPlayers + i; 1770 auto player = &pParty->pPlayers[i];
1771 1771
1772 if (player->HasItem(ITEM_ARTIFACT_GOVERNORS_ARMOR, 1)) byte_5111F6[0] = 1; 1772 if (player->HasItem(ITEM_ARTIFACT_GOVERNORS_ARMOR, 1)) byte_5111F6[0] = 1;
1773 if (player->HasItem(ITEM_ARTIFACT_YORUBA, 1)) byte_5111F6[1] = 1; 1773 if (player->HasItem(ITEM_ARTIFACT_YORUBA, 1)) byte_5111F6[1] = 1;
1774 if (player->HasItem(ITEM_RELIC_HARECS_LEATHER, 1)) byte_5111F6[2] = 1; 1774 if (player->HasItem(ITEM_RELIC_HARECS_LEATHER, 1)) byte_5111F6[2] = 1;
1775 if (player->HasItem(ITEM_ARTIFACT_LEAGUE_BOOTS, 1)) byte_5111F6[3] = 1; 1775 if (player->HasItem(ITEM_ARTIFACT_LEAGUE_BOOTS, 1)) byte_5111F6[3] = 1;