is
This commit is contained in:
@@ -20,6 +20,15 @@
|
|||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#define SMALLVAL 0.000000000000001
|
||||||
|
#define SATOSHIDEN ((uint64_t)100000000L)
|
||||||
|
#define dstr(x) ((double)(x) / SATOSHIDEN)
|
||||||
|
|
||||||
|
#ifndef _BITS256
|
||||||
|
#define _BITS256
|
||||||
|
union _bits256 { uint8_t bytes[32]; uint16_t ushorts[16]; uint32_t uints[8]; uint64_t ulongs[4]; uint64_t txid; };
|
||||||
|
typedef union _bits256 bits256;
|
||||||
|
#endif
|
||||||
|
|
||||||
int32_t _unhex(char c)
|
int32_t _unhex(char c)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ void rogue_setplayerdata(struct rogue_state *rs,char *gametxidstr)
|
|||||||
for (i=0; i<n; i++)
|
for (i=0; i<n; i++)
|
||||||
{
|
{
|
||||||
item = jitem(array,i);
|
item = jitem(array,i);
|
||||||
if ( Is_cJSON_True(jobj(item,"ismine")) != 0 )
|
if ( is_cJSON_True(jobj(item,"ismine")) != 0 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"found ismine:true\n");
|
fprintf(stderr,"found ismine:true\n");
|
||||||
if ( (item= jobj(item,"player")) != 0 && (datastr= jstr(item,"data")) != 0 )
|
if ( (item= jobj(item,"player")) != 0 && (datastr= jstr(item,"data")) != 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user