]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/platforms.qc
A few trillion lines of untested junk, committing now so it doesn't become quadrillions
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / platforms.qc
index 0176fe9b02e3cdae931e510850b89729592f0738..c5f50c46e027bad43b35b515129f405421c8453e 100644 (file)
@@ -236,14 +236,12 @@ void plat_reset()
 #endif
 }
 
-#ifdef SVQC
 .float platmovetype_start_default, platmovetype_end_default;
-float set_platmovetype(entity e, string s)
+bool set_platmovetype(entity e, string s)
 {
        // sets platmovetype_start and platmovetype_end based on a string consisting of two values
 
-       float n;
-       n = tokenize_console(s);
+       int n = tokenize_console(s);
        if(n > 0)
                e.platmovetype_start = stof(argv(0));
        else
@@ -266,4 +264,3 @@ float set_platmovetype(entity e, string s)
 
        return true;
 }
-#endif