fix compile error.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4857 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f60069e8e8
commit
7139478ae1
1 changed files with 9 additions and 1 deletions
|
@ -1465,7 +1465,15 @@ void Plug_Tick(void)
|
||||||
{
|
{
|
||||||
if (currentplug->tick)
|
if (currentplug->tick)
|
||||||
{
|
{
|
||||||
float rt = realtime, st = cl.time;
|
float rt = realtime;
|
||||||
|
float st = 0;
|
||||||
|
#ifdef SERVERONLY
|
||||||
|
st = sv.time
|
||||||
|
#elif defined(CLIENTONLY)
|
||||||
|
st = cl.time;
|
||||||
|
#else
|
||||||
|
st = sv.state?sv.time:cl.time;
|
||||||
|
#endif
|
||||||
VM_Call(currentplug->vm, currentplug->tick, (int)(realtime*1000), *(int*)&(rt), *(int*)&(st));
|
VM_Call(currentplug->vm, currentplug->tick, (int)(realtime*1000), *(int*)&(rt), *(int*)&(st));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue