//------------------------------------------------------------------------------ void CvDllNetMessageHandler::ResponseCityPopOrder(PlayerTypes ePlayer, int iCityID, int iNum) { CvPlayerAI& kPlayer = GET_PLAYER(ePlayer); CvCity* pkCity = kPlayer.getCity(iCityID); if(pkCity != NULL) { pkCity->popOrder(iNum); } }
void CvNetPopOrder::Execute() { if (m_ePlayer != NO_PLAYER) { CvCity* pCity = GET_PLAYER(m_ePlayer).getCity(m_iCityID); if (pCity != NULL) { pCity->popOrder(m_iNum); } if (GC.getGameINLINE().getActivePlayer() == m_ePlayer) { gDLL->getInterfaceIFace()->updatePythonScreens(); } } }