This commit is contained in:
jl777
2019-03-26 21:49:59 -11:00
parent 58215af9b0
commit 906cc5ccb4
2 changed files with 25 additions and 22 deletions

View File

@@ -546,7 +546,7 @@ void komodo_netevent(std::vector<uint8_t> message)
{
if ( (rand() % 10) == 0 )
{
fprintf(stderr,"relay message.[%d]\n",(int32_t)message.size());
//fprintf(stderr,"relay message.[%d]\n",(int32_t)message.size());
komodo_sendmessage(2,2,"events",message);
}
}

View File

@@ -801,6 +801,8 @@ int32_t issue_games_events(struct games_state *rs,char *gametxidstr,uint32_t eve
if ( fp == 0 )
fp = fopen("events.log","wb");
rs->buffered[rs->num++] = c;
if ( 0 )
{
if ( sizeof(c) == 1 )
sprintf(params,"[\"events\",\"17\",\"[%%22%02x%%22,%%22%s%%22,%u]\"]",c&0xff,gametxidstr,eventid);
else if ( sizeof(c) == 2 )
@@ -827,6 +829,7 @@ int32_t issue_games_events(struct games_state *rs,char *gametxidstr,uint32_t eve
free(retstr);
} else fprintf(fp,"error issuing method %s\n",params);
return(retval);
} else return(0);
}
int tetris(int argc, char **argv)