From: divverent Date: Sat, 30 May 2009 17:48:13 +0000 (+0000) Subject: provide isdemo() to menu QC X-Git-Tag: xonotic-v0.1.0preview~1621 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=da00708dace157ebbbc05b5cd698f60951fe5c08;p=xonotic%2Fdarkplaces.git provide isdemo() to menu QC git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8999 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/mvm_cmds.c b/mvm_cmds.c index 7c1c97d0..f5976ac6 100644 --- a/mvm_cmds.c +++ b/mvm_cmds.c @@ -778,6 +778,13 @@ static void VM_M_getmousepos(void) VectorSet(PRVM_G_VECTOR(OFS_RETURN), in_mouse_x * vid_conwidth.integer / vid.width, in_mouse_y * vid_conheight.integer / vid.height, 0); } +//#349 float() isdemo (EXT_CSQC) +static void VM_M_isdemo (void) +{ + VM_SAFEPARMCOUNT(0, VM_M_isdemo); + PRVM_G_FLOAT(OFS_RETURN) = cls.demoplayback; +} + prvm_builtin_t vm_m_builtins[] = { NULL, // #0 NULL function (not callable) VM_checkextension, // #1 @@ -1155,7 +1162,7 @@ NULL, // #345 NULL, // #346 NULL, // #347 NULL, // #348 -NULL, // #349 +VM_M_isdemo, // #349 NULL, // #350 NULL, // #351 NULL, // #352