[Gcblue-commits] gcb_wx/src/graphics tcMapView.cpp,1.36,1.37 tcPopupControl.cpp,1.11,1.12
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-12-10 16:52:12
|
Update of /cvsroot/gcblue/gcb_wx/src/graphics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29922/src/graphics Modified Files: tcMapView.cpp tcPopupControl.cpp Log Message: Start of save to python feature Index: tcMapView.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/graphics/tcMapView.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** tcMapView.cpp 8 Dec 2005 23:27:55 -0000 1.36 --- tcMapView.cpp 10 Dec 2005 16:52:03 -0000 1.37 *************** *** 1988,1992 **** long nMinID = GetClosest(pscreen); ! if (nMinID == -1) return -1; if (nMinID != currentHook) --- 1988,2001 ---- long nMinID = GetClosest(pscreen); ! /* added quick workaround so that hook can be cleared with two clicks ! ** that don't hook a new unit. Allows access to main popup menu ! */ ! static long lastMinID = 0; ! if ((nMinID == -1)&&(lastMinID != -1)) ! { ! lastMinID = nMinID; ! return -1; ! } ! lastMinID = nMinID; if (nMinID != currentHook) Index: tcPopupControl.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/graphics/tcPopupControl.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** tcPopupControl.cpp 10 Sep 2005 21:47:38 -0000 1.11 --- tcPopupControl.cpp 10 Dec 2005 16:52:03 -0000 1.12 *************** *** 86,89 **** --- 86,90 ---- mcGameMenu.AddItem("Show briefing", GC_SHOWBRIEFING); mcGameMenu.AddItem("Show mission status", GC_SHOWMISSIONSTATUS); + mcGameMenu.AddItem("Save game", GC_SAVEGAME); //mcGameMenu.EndSubMenu(); |