DaveMcW
Deity
- Joined
- Oct 8, 2002
- Messages
- 6,489
In CvGameTextMgr.cpp, function getAttitudeString(), I am trying to censor some data if the human is looking at relations between two rivals.
Is there a way I can look up eObservingPlayer (the human), without adding it as a function parameter?
Code:
void CvGameTextMgr::getAttitudeString(CvWStringBuffer& szBuffer, PlayerTypes ePlayer, PlayerTypes eTargetPlayer)
{
PlayerTypes eObservingPlayer = ?????;
bool bCensored = false;
if (eObservingPlayer != ePlayer && eObservingPlayer != eTargetPlayer) {
bCensored = true;
}
...
Is there a way I can look up eObservingPlayer (the human), without adding it as a function parameter?