Skip to content

Commit

Permalink
R&F: Update owner of city dot map at end of chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
f1rpo committed May 19, 2020
1 parent 9c45d3a commit 6d8e770
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CvGameCoreDLL/RiseFall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,12 @@ void RiseFall::setPlayerControl(PlayerTypes civId, bool b) {
g.updateActiveVisibility();
setUIHidden(!b);
}
if(!b) { // Update dot map owner
CyArgsList pyArgs;
pyArgs.add(formerHumanCiv);
CvEventReporter::getInstance().genericEvent(
"SwitchHotSeatPlayer", pyArgs.makeFunctionArgs());
}
for(int i = 0; i < MAX_CIV_PLAYERS; i++) {
CvPlayerAI& other = GET_PLAYER((PlayerTypes)i);
if(!other.isAlive() || other.isMinorCiv())
Expand Down

0 comments on commit 6d8e770

Please sign in to comment.