Delay to see

This commit is contained in:
jl777
2019-02-10 02:56:19 -11:00
parent 91f11de58d
commit 175ac9275d

View File

@@ -166,11 +166,13 @@ void rogue_setplayerdata(struct rogue_state *rs,char *gametxidstr)
if ( is_cJSON_True(jobj(item,"ismine")) != 0 )
{
fprintf(stderr,"found ismine:true\n");
sleep(2);
if ( (item= jobj(item,"player")) != 0 && (datastr= jstr(item,"data")) != 0 )
{
decode_hex((uint8_t *)&rs->P,(int32_t)strlen(datastr)/2,datastr);
fprintf(stderr,"set datastr[%d]\n",(int32_t)strlen(datastr));
rs->restoring = 1;
sleep(5);
}
}
}