From: Christian S. <blu...@us...> - 2004-07-26 12:54:39
|
Update of /cvsroot/planeshift/planeshift/src/client/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31907/src/client/gui Modified Files: pawscharpick.cpp pawscharpick.h Log Message: - Added 1 time lock to Join game button in char picker Index: pawscharpick.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/pawscharpick.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** pawscharpick.cpp 4 Jul 2004 04:40:38 -0000 1.19 --- pawscharpick.cpp 26 Jul 2004 12:54:31 -0000 1.20 *************** *** 34,38 **** characterCreationScreens = false; view = 0; ! } --- 34,38 ---- characterCreationScreens = false; view = 0; ! connecting = false; } *************** *** 116,121 **** { // if we have a character then we play as that one. ! if ( selectedCharacter != -1 ) { char name[100]; sprintf( name, "SelectCharacter%d", selectedCharacter ); --- 116,124 ---- { // if we have a character then we play as that one. ! if ( selectedCharacter != -1 && !connecting ) { + // Disable the button so that we don't send 2 picker message + connecting = true; + char name[100]; sprintf( name, "SelectCharacter%d", selectedCharacter ); Index: pawscharpick.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/pawscharpick.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pawscharpick.h 16 May 2004 19:41:09 -0000 1.7 --- pawscharpick.h 26 Jul 2004 12:54:31 -0000 1.8 *************** *** 53,56 **** --- 53,58 ---- int selectedCharacter; + bool connecting; + pawsObjectView* view; Model models[MAX_CHARS]; |