- compile error fix for linux

This commit is contained in:
Magnus Norddahl 2018-11-12 03:48:46 +01:00
parent efa8f3447d
commit 6f38ecad9b
2 changed files with 2 additions and 2 deletions

View file

@ -156,7 +156,7 @@ void NetClient::SetCurrentTic(int tictime)
}
else
{
if (mServerTicDelta == -1 || std::abs(gametic + mServerTicDelta - mLastReceivedTic) > jitter)
if (mServerTicDelta == -1 || abs(gametic + mServerTicDelta - mLastReceivedTic) > jitter)
{
//Printf("netcable icon! ;)\n");
mServerTicDelta = mLastReceivedTic - gametic - jitter;

View file

@ -46,7 +46,7 @@
#include "x86.h"
#include "d_main.h"
#include "d_net.h"
#include "network/net.h"
#include "g_game.h"
#include "c_dispatch.h"