Delay to see
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user