Minor stylistic fixes for clarity and consistency with the rest of
RetroArch.
This commit is contained in:
parent
b1a2e096e5
commit
9bc78d25a0
|
@ -378,7 +378,7 @@ static void simulate_input(netplay_t *netplay)
|
||||||
sizeof(netplay->buffer[prev].real_input_state));
|
sizeof(netplay->buffer[prev].real_input_state));
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MAX_STALL_TIME_USEC 10000000
|
#define MAX_STALL_TIME_USEC (10*1000*1000)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* netplay_poll:
|
* netplay_poll:
|
||||||
|
@ -521,8 +521,10 @@ static int16_t netplay_input_state(netplay_t *netplay,
|
||||||
curr_input_state = netplay->buffer[ptr].real_input_state;
|
curr_input_state = netplay->buffer[ptr].real_input_state;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
curr_input_state = netplay->buffer[ptr].simulated_input_state;
|
curr_input_state = netplay->buffer[ptr].simulated_input_state;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (device)
|
switch (device)
|
||||||
{
|
{
|
||||||
|
|
|
@ -127,7 +127,9 @@ static void netplay_net_post_frame(netplay_t *netplay)
|
||||||
{
|
{
|
||||||
netplay->other_ptr = netplay->read_ptr;
|
netplay->other_ptr = netplay->read_ptr;
|
||||||
netplay->other_frame_count = netplay->read_frame_count;
|
netplay->other_frame_count = netplay->read_frame_count;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
netplay->other_ptr = netplay->self_ptr;
|
netplay->other_ptr = netplay->self_ptr;
|
||||||
netplay->other_frame_count = netplay->self_frame_count;
|
netplay->other_frame_count = netplay->self_frame_count;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue