]> git.0x19.co - doomgeneric-snom360/commitdiff
boolean fix
authorozkl <ozkl@users.noreply.github.com>
Sun, 12 Apr 2026 11:23:43 +0000 (14:23 +0300)
committerozkl <ozkl@users.noreply.github.com>
Sun, 12 Apr 2026 11:23:43 +0000 (14:23 +0300)
doomgeneric/doomtype.h

index 7acaa4955ab749d36ff030c97df52f2c7520162b..dc14bc5dacd04a58f581db44c36cfe9534c5f1b8 100644 (file)
@@ -64,9 +64,8 @@
 
 #if defined(__cplusplus) || defined(__bool_true_false_are_defined)
 
-// Use builtin bool type with C++.
-
-typedef unsigned char boolean;
+//boolean is cast to int* in doom. so to keep size the same, make boolean an int.
+typedef unsigned int boolean;
 
 #else