]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
progs: Implement builtin #245 (mod) for SSQC and CSQC
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 17 Oct 2020 19:48:49 +0000 (19:48 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 17 Oct 2020 19:48:49 +0000 (19:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13023 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c
dpdefs/csprogsdefs.qc
dpdefs/dpextensions.qc
svvm_cmds.c

index 547a5fb0f65523613782f1180394211aee4bfe3f..adf201441b0e3571c9591d916465d92ef4cb7768 100644 (file)
@@ -5183,7 +5183,7 @@ NULL,                                                     // #241
 NULL,                                                  // #242
 NULL,                                                  // #243
 NULL,                                                  // #244
-NULL,                                                  // #245
+VM_modulo,                                             // #245
 NULL,                                                  // #246
 NULL,                                                  // #247
 NULL,                                                  // #248
index 457bd7cd80706508cb007507dc151a27d323b64a..489abf0a576dff8d048cc201d04449aade866b7f 100644 (file)
@@ -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;
index 2dba6b62acd9718e3f2cc29b472335391879977d..48045a202faf22ed1b7bdcbf811db9d113d7752e 100644 (file)
@@ -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;
index d2ad2d817ef653450ee483a5541cb6dd95f7d672..5147a324fcf9e5e1adf53d3342b8c1e8fe76fd25 100644 (file)
@@ -3456,7 +3456,7 @@ NULL,                                                     // #241
 NULL,                                                  // #242
 NULL,                                                  // #243
 NULL,                                                  // #244
-NULL,                                                  // #245
+VM_modulo,                                             // #245
 NULL,                                                  // #246
 NULL,                                                  // #247
 NULL,                                                  // #248