]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/playerdemo.qc
Turn #define'd constants into actual constants
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / playerdemo.qc
index 631c10dcbb67fb36bacf638882abe4710f70a76f..b848cfac767a5b44612c70d65bd5e2bdd82eb2c3 100644 (file)
@@ -2,9 +2,9 @@
 .float playerdemo_mode;
 .float playerdemo_starttime;
 .float playerdemo_time;
-#define PLAYERDEMO_MODE_OFF 0
-#define PLAYERDEMO_MODE_READING 1
-#define PLAYERDEMO_MODE_WRITING 2
+const float PLAYERDEMO_MODE_OFF = 0;
+const float PLAYERDEMO_MODE_READING = 1;
+const float PLAYERDEMO_MODE_WRITING = 2;
 void playerdemo_init()
 {
        self.playerdemo_mode = PLAYERDEMO_MODE_OFF;