comparison UI/UiGame.cpp @ 1826:bdac32c645c5

Changing arrays in class Player to std::array
author Grumpy7
date Wed, 09 Oct 2013 09:08:15 +0200
parents 24b70fa98474
children 0c75c3e7e436
comparison
equal deleted inserted replaced
1825:23deb6b09c8c 1826:bdac32c645c5
817 window->DrawText(pFontArrus, 120, 22, 0, pTmpBuf.data(), 0, 0, 0); 817 window->DrawText(pFontArrus, 120, 22, 0, pTmpBuf.data(), 0, 0, 0);
818 818
819 uFramesetIDa = 0; 819 uFramesetIDa = 0;
820 for (uint i = 0; i < 24; ++i) 820 for (uint i = 0; i < 24; ++i)
821 { 821 {
822 auto buff = player->pPlayerBuffs + i; 822 auto buff = player->pPlayerBuffs.data() + i;
823 if (buff->uExpireTime > 0) 823 if (buff->uExpireTime > 0)
824 { 824 {
825 v36 = uFramesetIDa++ * pFontComic->uFontHeight + 134; 825 v36 = uFramesetIDa++ * pFontComic->uFontHeight + 134;
826 window->DrawText(pFontComic, 52, v36, ui_game_character_record_playerbuff_colors[i], aSpellNames[20 + i], 0, 0, 0); 826 window->DrawText(pFontComic, 52, v36, ui_game_character_record_playerbuff_colors[i], aSpellNames[20 + i], 0, 0, 0);
827 DrawBuff_remaining_time_string(v36, window, buff->uExpireTime - pParty->uTimePlayed, pFontComic); 827 DrawBuff_remaining_time_string(v36, window, buff->uExpireTime - pParty->uTimePlayed, pFontComic);