Attempt to fix flip users

This commit is contained in:
twinaphex 2016-04-09 03:16:11 +02:00
parent 7086277c56
commit 6a814229e1
2 changed files with 2 additions and 10 deletions

View File

@ -969,7 +969,7 @@ error:
*
* On regular netplay, flip who controls user 1 and 2.
**/
void netplay_flip_users(netplay_t *netplay)
static void netplay_flip_users(netplay_t *netplay)
{
uint32_t flip_frame = netplay->frame_count + 2 * UDP_FRAME_PACKETS;
uint32_t flip_frame_net = htonl(flip_frame);
@ -1180,7 +1180,7 @@ bool netplay_driver_ctl(enum rarch_netplay_ctl_state state, void *data)
{
bool *state = (bool*)data;
if (*state)
event_cmd_ctl(EVENT_CMD_NETPLAY_FLIP_PLAYERS, NULL);
netplay_flip_users((netplay_t*)netplay_data);
}
break;
case RARCH_NETPLAY_CTL_FULLSCREEN_TOGGLE:

View File

@ -143,14 +143,6 @@ netplay_t *netplay_new(const char *server,
**/
void netplay_free(netplay_t *handle);
/**
* netplay_flip_users:
* @netplay : pointer to netplay object
*
* On regular netplay, flip who controls user 1 and 2.
**/
void netplay_flip_users(netplay_t *handle);
/**
* netplay_pre_frame:
* @netplay : pointer to netplay object