git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9456
d7cf8633-e32d-0410-b094-
e92efae38249
VM_loadfromdata, // #529
VM_loadfromfile, // #530
NULL, // #531
-NULL, // #532
+VM_log, // #532
NULL, // #533
NULL, // #534
NULL, // #535
"DP_QC_CVAR_TYPE "
"DP_QC_CVAR_DESCRIPTION "
"DP_QC_FINDCHAIN_TOFIELD "
+"DP_QC_LOG "
"DP_QC_RENDER_SCENE "
"DP_QC_STRFTIME "
"DP_QC_STRINGBUFFERS "
NULL, // #529
NULL, // #530
NULL, // #531
-NULL, // #532
+VM_log, // #532
NULL, // #533
NULL, // #534
NULL, // #535
PRVM_G_FLOAT(OFS_RETURN) = pow(PRVM_G_FLOAT(OFS_PARM0), PRVM_G_FLOAT(OFS_PARM1));
}
+void VM_log (void)
+{
+ VM_SAFEPARMCOUNT(1,VM_log);
+ PRVM_G_FLOAT(OFS_RETURN) = log(PRVM_G_FLOAT(OFS_PARM0));
+}
+
void VM_Files_Init(void)
{
int i;
void VM_max (void);
void VM_bound (void);
void VM_pow (void);
+void VM_log (void);
void VM_asin (void);
void VM_acos (void);
void VM_atan (void);
"DP_QC_GETTAGINFO_BONEPROPERTIES "
"DP_QC_GETTIME "
"DP_QC_GETTIME_CDTRACK "
+"DP_QC_LOG "
"DP_QC_MINMAXBOUND "
"DP_QC_MULTIPLETEMPSTRINGS "
"DP_QC_NUM_FOR_EDICT "
VM_loadfromdata, // #529
VM_loadfromfile, // #530
VM_SV_setpause, // #531 void(float pause) setpause = #531;
-NULL, // #532
+VM_log, // #532
NULL, // #533
NULL, // #534
NULL, // #535