rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/PokemonHackSourceCode @ 302  →  /PokemonHackSourceCode/ @ 310
/PokemonHackSourceCode/PokemonMemHack/MemPmAbilityPage.cpp
@@ -92,6 +92,7 @@
DWORD dwBreedAblSum = 0;
BYTE bIndex;
CString szText;
BreedListEntry * bleTmp;
 
if(!m_ppc || !g_MemRom.m_bOpened)
{
@@ -104,10 +105,14 @@
 
for(bIndex = 0; bIndex < 6; ++bIndex)
{
dwAbl = (&(g_MemRom.GetBreedListEntry(m_ppc->GetBreed())->bHP))[bIndex];
szText.Format(_T("%lu"), dwAbl);
SetDlgItemText(IDC_BREED_HP + bIndex, szText);
dwBreedAblSum += dwAbl;
bleTmp = g_MemRom.GetBreedListEntry(m_ppc->GetBreed());
if(bleTmp)
{
dwAbl = (&(bleTmp->bHP))[bIndex];
szText.Format(_T("%lu"), dwAbl);
SetDlgItemText(IDC_BREED_HP + bIndex, szText);
dwBreedAblSum += dwAbl;
}
}
 
szText.Format(_T("%lu"), dwBreedAblSum);
/PokemonHackSourceCode/PokemonRomViewer/EncDlg.cpp
@@ -108,7 +108,7 @@
 
lvi.iSubItem = 0;
wAreaId = rom.m_pEncAddressList[dwIndex].wAreaId;
szText.Format(_T("%04hX"), wAreaId);
szText.Format(_T("%02d-%03d"), wAreaId & 0xFF, wAreaId >> 8 & 0xFF);
 
lvi.pszText = szText.GetBuffer();
if(dwIndex < dwListCount)