Merge pull request #1305 from jl777/jl777

Truncate next file
This commit is contained in:
jl777
2019-03-02 09:22:48 -11:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ int32_t flushkeystrokes_local(struct rogue_state *rs,int32_t waitflag)
fprintf(stderr," first part rnd.%d\n",rnd(1000));
fclose(fp);
}
roguefname(fname,rs->seed,rs->counter);
roguefname(fname,rs->seed,rs->counter+1);
if ( (fp= fopen(fname,"wb")) != 0 ) // truncate next file
fclose(fp);
//fprintf(stderr,"savefile <- %s retflag.%d\n",fname,retflag);

View File

@@ -1315,7 +1315,7 @@ UniValue rogue_gameinfo(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
rogue_gameplayerinfo(cp,obj,txid,tx,i+1,maxplayers,myrogueaddr);
a.push_back(obj);
}
else
else if ( 0 )
{
sprintf(str,"vout %d+1 is unspent",i);
result.push_back(Pair("unspent",str));