mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
Blood: input code improvements
Repairs interpolation issues introduced in 96c9ca657e
as reported in https://forum.zdoom.org/viewtopic.php?f=340&t=69009
This commit is contained in:
parent
6fdc11d608
commit
b907791558
4 changed files with 5 additions and 5 deletions
|
@ -1224,6 +1224,8 @@ RESTART:
|
||||||
gBufferJitter = 0;
|
gBufferJitter = 0;
|
||||||
while (totalclock >= gNetFifoClock && ready2send)
|
while (totalclock >= gNetFifoClock && ready2send)
|
||||||
{
|
{
|
||||||
|
gNetInput = gInput;
|
||||||
|
gInput = {};
|
||||||
netGetInput();
|
netGetInput();
|
||||||
gNetFifoClock += 4;
|
gNetFifoClock += 4;
|
||||||
while (gNetFifoHead[myconnectindex]-gNetFifoTail > gBufferJitter && !gStartNewGame && !gQuitGame)
|
while (gNetFifoHead[myconnectindex]-gNetFifoTail > gBufferJitter && !gStartNewGame && !gQuitGame)
|
||||||
|
|
|
@ -39,7 +39,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
BEGIN_BLD_NS
|
BEGIN_BLD_NS
|
||||||
|
|
||||||
GINPUT gInput;
|
GINPUT gInput, gNetInput;
|
||||||
bool bSilentAim = false;
|
bool bSilentAim = false;
|
||||||
|
|
||||||
int iTurnCount = 0;
|
int iTurnCount = 0;
|
||||||
|
|
|
@ -103,7 +103,7 @@ struct GINPUT
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
extern GINPUT gInput;
|
extern GINPUT gInput, gNetInput;
|
||||||
extern bool bSilentAim;
|
extern bool bSilentAim;
|
||||||
|
|
||||||
extern fix16_t gViewLook, gViewAngle;
|
extern fix16_t gViewLook, gViewAngle;
|
||||||
|
|
|
@ -734,10 +734,8 @@ void netGetInput(void)
|
||||||
for (int p = connecthead; p >= 0; p = connectpoint2[p])
|
for (int p = connecthead; p >= 0; p = connectpoint2[p])
|
||||||
if (gNetFifoHead[myconnectindex]-200 > gNetFifoHead[p])
|
if (gNetFifoHead[myconnectindex]-200 > gNetFifoHead[p])
|
||||||
return;
|
return;
|
||||||
ctrlGetInput();
|
|
||||||
GINPUT &input = gFifoInput[gNetFifoHead[myconnectindex]&255][myconnectindex];
|
GINPUT &input = gFifoInput[gNetFifoHead[myconnectindex]&255][myconnectindex];
|
||||||
input = gInput;
|
input = gNetInput;
|
||||||
gInput = {};
|
|
||||||
gNetFifoHead[myconnectindex]++;
|
gNetFifoHead[myconnectindex]++;
|
||||||
if (gGameOptions.nGameType == 0 || numplayers == 1)
|
if (gGameOptions.nGameType == 0 || numplayers == 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue