mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- fixed out of synch on player disconnect
This commit is contained in:
parent
36ef593c56
commit
57a988ae56
@ -510,7 +510,8 @@ CommandResult Commander::pushNetworkCommand(const NetworkCommand* networkCommand
|
||||
const Unit* unit = NULL;
|
||||
if( networkCommand->getNetworkCommandType() != nctSwitchTeam &&
|
||||
networkCommand->getNetworkCommandType() != nctSwitchTeamVote &&
|
||||
networkCommand->getNetworkCommandType() != nctPauseResume) {
|
||||
networkCommand->getNetworkCommandType() != nctPauseResume &&
|
||||
networkCommand->getNetworkCommandType() != nctPlayerStatusChange) {
|
||||
unit= world->findUnitById(networkCommand->getUnitId());
|
||||
if(unit == NULL) {
|
||||
char szBuf[1024]="";
|
||||
|
@ -1970,7 +1970,7 @@ void MenuStateCustomGame::switchSetupForSlots(SwitchSetupRequest **switchSetupRe
|
||||
ServerInterface *& serverInterface, int startIndex, int endIndex, bool onlyNetworkUnassigned) {
|
||||
for(int i= startIndex; i < endIndex; ++i) {
|
||||
if(switchSetupRequests[i] != NULL) {
|
||||
printf("Switch slot = %d control = %d newIndex = %d currentindex = %d onlyNetworkUnassigned = %d\n",i,listBoxControls[i].getSelectedItemIndex(),switchSetupRequests[i]->getToFactionIndex(),switchSetupRequests[i]->getCurrentFactionIndex(),onlyNetworkUnassigned);
|
||||
//printf("Switch slot = %d control = %d newIndex = %d currentindex = %d onlyNetworkUnassigned = %d\n",i,listBoxControls[i].getSelectedItemIndex(),switchSetupRequests[i]->getToFactionIndex(),switchSetupRequests[i]->getCurrentFactionIndex(),onlyNetworkUnassigned);
|
||||
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] switchSetupRequests[i]->getSwitchFlags() = %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,switchSetupRequests[i]->getSwitchFlags());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user