mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
name the closed game
This commit is contained in:
parent
208a6b764c
commit
3d87d4f60a
1 changed files with 6 additions and 1 deletions
|
@ -821,7 +821,12 @@ main_onGameMessage( Globals* globals, XP_U32 gameID,
|
|||
char key[32];
|
||||
formatGameKeyInt( key, sizeof(key), gameID );
|
||||
if ( have_stored_value( key ) ) {
|
||||
call_alert( "Dropping packet for closed game" );
|
||||
formatNameKey( key, sizeof(key), gameID );
|
||||
const char* name = get_stored_value( key );
|
||||
char buf[128];
|
||||
snprintf( buf, sizeof(buf), "Dropping packet for closed game \"%s\"", name );
|
||||
free( (void*)name);
|
||||
call_alert( buf );
|
||||
} else {
|
||||
XWStreamCtxt* stream = mem_stream_make_raw( MPPARM(globals->mpool)
|
||||
globals->vtMgr );
|
||||
|
|
Loading…
Reference in a new issue