]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/ipban.qc
Replace usages of mod() with the operator %
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / ipban.qc
index a180547c0f97c09cb3632fdeb694e9bece0762a5..d3d7fdca6e93aa87ad5db6b41f5261891672ff0a 100644 (file)
@@ -138,7 +138,7 @@ void OnlineBanList_URI_Get_Callback(float id, float status, string data)
        else
                n = tokenizebyseparator(data, "\n");
 
-       if(mod(n, 4) != 0)
+       if((n % 4) != 0)
        {
                print("error: received invalid item count: ", ftos(n), "\n");
                return;