From: cloudwalk Date: Sat, 17 Oct 2020 19:48:49 +0000 (+0000) Subject: progs: Implement builtin #245 (mod) for SSQC and CSQC X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7fd05e792c54a2be48c322eb6718c52d209605c5;p=xonotic%2Fdarkplaces.git progs: Implement builtin #245 (mod) for SSQC and CSQC git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13023 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/clvm_cmds.c b/clvm_cmds.c index 547a5fb0..adf20144 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -5183,7 +5183,7 @@ NULL, // #241 NULL, // #242 NULL, // #243 NULL, // #244 -NULL, // #245 +VM_modulo, // #245 NULL, // #246 NULL, // #247 NULL, // #248 diff --git a/dpdefs/csprogsdefs.qc b/dpdefs/csprogsdefs.qc index 457bd7cd..489abf0a 100644 --- a/dpdefs/csprogsdefs.qc +++ b/dpdefs/csprogsdefs.qc @@ -1474,3 +1474,4 @@ vector gettaginfo_forward; vector gettaginfo_right; vector gettaginfo_up; float checkpvs(vector viewpos, entity viewee) = #240; +float mod(float dividend, float divisor) = #245; diff --git a/dpdefs/dpextensions.qc b/dpdefs/dpextensions.qc index 2dba6b62..48045a20 100644 --- a/dpdefs/dpextensions.qc +++ b/dpdefs/dpextensions.qc @@ -2639,4 +2639,6 @@ float(string pattern, float caseinsensitive, float quiet, string packfile) searc //builtin definitions: void(string cmdname) registercommand = #352; //description: -//the registercommand builtin but the server can use it \ No newline at end of file +//the registercommand builtin but the server can use it + +float(float dividend, float divisor) mod = #245; diff --git a/svvm_cmds.c b/svvm_cmds.c index d2ad2d81..5147a324 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -3456,7 +3456,7 @@ NULL, // #241 NULL, // #242 NULL, // #243 NULL, // #244 -NULL, // #245 +VM_modulo, // #245 NULL, // #246 NULL, // #247 NULL, // #248