From 07ff14a0a02dc6a63e49c0f87364fa3ebcbbc32e Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 3 Nov 2024 04:16:37 +0300 Subject: [PATCH] engine: common: fix -Wenum-float-comparison --- engine/common/common.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/engine/common/common.h b/engine/common/common.h index b5a0c42e2f..94784ab699 100644 --- a/engine/common/common.h +++ b/engine/common/common.h @@ -76,12 +76,9 @@ XASH SPECIFIC - sort of hack that works only in Xash3D not in GoldSrc #define HACKS_RELATED_HLMODS // some HL-mods works differently under Xash and can't be fixed without some hacks at least at current time -enum -{ - DEV_NONE = 0, - DEV_NORMAL, - DEV_EXTENDED -}; +#define DEV_NONE 0 +#define DEV_NORMAL 1 +#define DEV_EXTENDED 2 enum {