]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/dpdefs/menudefs.qc
Declare more ints as ints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / dpdefs / menudefs.qc
index 0d6c253709540b5f4f82ce8a9d50d7472a2dd21f..98a8003f2e5c83fa659eee1fd409c46a7414f609 100644 (file)
@@ -37,18 +37,6 @@ float FILE_READ = 0;
 float FILE_APPEND = 1;
 float FILE_WRITE = 2;
 
-///////////////////////////
-// logical constants (just for completeness)
-
-float TRUE     = 1;
-float FALSE = 0;
-
-///////////////////////////
-// boolean constants
-
-float true = 1;
-float false = 0;
-
 ///////////////////////////
 // msg constants
 
@@ -435,7 +423,7 @@ float CVAR_TYPEFLAG_READONLY = 32;
 //idea: ??
 //darkplaces implementation: LordHavoc
 //functions to manage string buffer objects - that is, arbitrary length string arrays that are handled by the engine
-float() buf_create = #440;
+int() buf_create = #440;
 void(float bufhandle) buf_del = #441;
 float(float bufhandle) buf_getsize = #442;
 void(float bufhandle_from, float bufhandle_to) buf_copy = #443;
@@ -539,8 +527,8 @@ float(string s) tokenize_console = #514;
 float(float i) argv_start_index = #515;
 float(float i) argv_end_index = #516;
 string(float, float) getgamedirinfo = #626;
-#define GETGAMEDIRINFO_NAME 0
-#define GETGAMEDIRINFO_DESCRIPTION 1
+const float GETGAMEDIRINFO_NAME = 0;
+const float GETGAMEDIRINFO_DESCRIPTION = 1;
 float log(float f) = #532;
 string(string format, ...) sprintf = #627;
 string(string s) strdecolorize = #477;