From 7139478ae14475feb5b08c960a6a0aae8c3b2f89 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 21 Apr 2015 20:51:18 +0000 Subject: [PATCH] fix compile error. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4857 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/plugin.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/engine/common/plugin.c b/engine/common/plugin.c index 6da84dfda..e5f2534f9 100644 --- a/engine/common/plugin.c +++ b/engine/common/plugin.c @@ -1465,7 +1465,15 @@ void Plug_Tick(void) { 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)); } }