]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added DP_QC_STRFTIME extension to menu vm (somehow I missed this when committing...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Feb 2007 15:56:40 +0000 (15:56 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Feb 2007 15:56:40 +0000 (15:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6808 d7cf8633-e32d-0410-b094-e92efae38249

mvm_cmds.c

index 33412190dd0beb817b9934cb832afdbe5ea976c9..138dfc46aa068d93faa60bab347c3f88c27da741 100644 (file)
@@ -8,6 +8,7 @@ char *vm_m_extensions =
 "DP_CINEMATIC_DPV "
 "DP_MENU_EXTRESPONSEPACKET "
 "DP_QC_ASINACOSATANATAN2TAN "
+"DP_QC_STRFTIME "
 "DP_QC_STRINGCOLORFUNCTIONS "
 "DP_QC_UNLIMITEDTEMPSTRINGS";
 
@@ -929,7 +930,9 @@ prvm_builtin_t vm_m_builtins[] = {
        VM_tan,                                         // #475 float(float a) VM_tan (DP_QC_ASINACOSATANATAN2TAN)
        VM_strlennocol,                         // #476 float(string s) : DRESK - String Length (not counting color codes) (DP_QC_STRINGCOLORFUNCTIONS)
        VM_strdecolorize,                       // #477 string(string s) : DRESK - Decolorized String (DP_QC_STRINGCOLORFUNCTIONS)
-       0,0,0,                  // 480
+       VM_strftime,                            // #478 string(float uselocaltime, string format, ...) (DP_QC_STRFTIME)
+       0,                              // 479
+       0,                              // 480
        e10,                    // 490
        e10,                    // 500
        e100,                   // 600