CvPlayer.h
on
protected:
i add int m_iCanBuildRiverNum;
i just only add the int m_iCanBuildRiverNum; , to build dll is ok, but play a new game, if only see another civ city , the game is shut down ,i don't know why??
if i "//" the int m_iCanBuildRiverNum; , all is ok, no problem
on CvPlayer.cpp i "//" all i add
sorry my english.
on
protected:
i add int m_iCanBuildRiverNum;
Code:
int m_iCombatExperience;
int m_iPopRushHurryCount;
int m_iInflationModifier;
uint m_uiStartTime; // XXX save these?
// add PLAYEROPTION_WORKER_BUILD_RIVER
int m_iCanBuildRiverNum;
// end add
bool m_bAlive;
bool m_bEverAlive;
bool m_bTurnActive;
bool m_bAutoMoves;
i just only add the int m_iCanBuildRiverNum; , to build dll is ok, but play a new game, if only see another civ city , the game is shut down ,i don't know why??
if i "//" the int m_iCanBuildRiverNum; , all is ok, no problem
on CvPlayer.cpp i "//" all i add
Code:
//m_iCanBuildRiverNum = 0;
/*
int CvPlayer::getCanBuildRiverNum() const
{
return m_iCanBuildRiverNum;
}
void CvPlayer::setCanBuildRiverNum(int iChange)
{
m_iCanBuildRiverNum += iChange;
}
*/
//pStream->Read(&m_iCanBuildRiverNum);
//pStream->Write(m_iCanBuildRiverNum);
sorry my english.