add new action to be called when relay make me a client. Seems

necessary to get server_initClientConnection connection called when
all's in the right state.  It's not working consistently yet, though,
so may need changes.
This commit is contained in:
Andy2 2010-09-24 18:48:30 -07:00
parent 16001e61d0
commit 63ac6542c6

View file

@ -44,6 +44,7 @@ public class JNIThread extends Thread {
CMD_DRAW,
CMD_LAYOUT,
CMD_START,
CMD_SWITCHCLIENT,
CMD_RESET,
CMD_SAVE,
CMD_DO,
@ -287,6 +288,13 @@ public class JNIThread extends Thread {
}
draw = XwJNI.server_do( m_jniGamePtr );
break;
case CMD_SWITCHCLIENT:
XwJNI.server_reset( m_jniGamePtr );
XwJNI.server_initClientConnection( m_jniGamePtr );
draw = XwJNI.server_do( m_jniGamePtr );
break;
case CMD_DO:
if ( nextSame( JNICmd.CMD_DO ) ) {
continue;