mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
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:
parent
16001e61d0
commit
63ac6542c6
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue