Update of /cvsroot/gcblue/gcb_wx/src/scriptinterface
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv22513/src/scriptinterface
Modified Files:
tcSimPythonInterface.cpp
Log Message:
Index: tcSimPythonInterface.cpp
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcSimPythonInterface.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** tcSimPythonInterface.cpp 1 Dec 2006 03:39:54 -0000 1.46
--- tcSimPythonInterface.cpp 6 Dec 2006 01:20:43 -0000 1.47
***************
*** 749,755 ****
s += ")\n";
! CallPython(s.c_str(), "Exception occurred in ProcessCommand\n");
! PopMode();
}
--- 749,772 ----
s += ")\n";
! if (!mpSimState->IsMultiplayerClient())
! {
! CallPython(s.c_str(), "Exception occurred in ProcessCommand\n");
! }
! else
! {
! ClientCommand cmd;
! cmd.menuMode = meMenuMode;
! cmd.idList = id;
! cmd.commandText = s;
! if (cmd.idList.size() == 0)
! {
! cmd.idList = groupInterface->GetUnits();
! }
!
! clientCommands.push_back(cmd);
! }
!
! PopMode();
}
|