This commit is contained in:
jl777
2019-02-10 03:32:42 -11:00
parent 3b32174da7
commit 634d3f5efd
3 changed files with 4 additions and 5 deletions

View File

@@ -217,7 +217,7 @@ int32_t rogue_replay2(uint8_t *newdata,uint64_t seed,char *keystrokes,int32_t nu
{
rs->P = *player;
rs->restoring = 1;
fprintf(stderr,"restore player\n");
fprintf(stderr,"restore player packsize.%d\n",rp->P.packsize);
}
uint32_t starttime = (uint32_t)time(NULL);
rogueiterate(rs);

View File

@@ -1371,9 +1371,9 @@ void rogue_restoreobject(THING *o,struct rogue_packitem *item)
ws_info[item->which].oi_know = TRUE;
break;
}
//char packitemstr[256];
//strcpy(packitemstr,inv_name(o,FALSE));
//fprintf(stderr,"packitem.(%s)\n",packitemstr);
char packitemstr[256];
strcpy(packitemstr,inv_name(o,FALSE));
fprintf(stderr,"packitem.(%s)\n",packitemstr);
}
void rogue_packitemstr(char *packitemstr,struct rogue_packitem *item)

View File

@@ -810,7 +810,6 @@ UniValue rogue_finishgame(uint64_t txfee,struct CCcontract_info *cp,cJSON *param
seed = rogue_gamefields(obj,maxplayers,buyin,gametxid,myrogueaddr);
fprintf(stderr,"found baton %s numkeys.%d seed.%llu playerdata.%d\n",batontxid.ToString().c_str(),numkeys,(long long)seed,(int32_t)playerdata.size());
memset(&P,0,sizeof(P));
sleep(60);
if ( playerdata.size() > 0 )
{
for (i=0; i<playerdata.size(); i++)