From: TimePath <andrew.hardaker1995@gmail.com>
Date: Sat, 31 Jan 2015 04:25:34 +0000 (+1100)
Subject: Bring back `TRUE` and `FALSE` as deprecated aliases
X-Git-Tag: xonotic-v0.8.1~133^2~5
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c1dab5f072c319051c16a29a7b7264b7678d0e15;p=xonotic%2Fxonotic-data.pk3dir.git

Bring back `TRUE` and `FALSE` as deprecated aliases
---

diff --git a/qcsrc/common/util-pre.qh b/qcsrc/common/util-pre.qh
index 1537c75fb..ed4ebcf06 100644
--- a/qcsrc/common/util-pre.qh
+++ b/qcsrc/common/util-pre.qh
@@ -28,7 +28,12 @@
     #define bool float
 
     // Boolean Constants
-    const bool true 	= 1;
-    const bool false 	= 0;
+    const int true 	= 1;
+    const int false = 0;
 #endif
+
+// Transitional aliases
+[[deprecated("use true")]] [[alias("true")]] const bool TRUE;
+[[deprecated("use false")]] [[alias("false")]] const bool FALSE;
+
 #endif