From e755961d77241eb4532ad463ca4c9eb431379fd7 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 28 Mar 2022 12:03:07 +0200 Subject: [PATCH] Modernize ECommandTarget_t enum --- r5dev/tier0/cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/tier0/cmd.h b/r5dev/tier0/cmd.h index 229cab81..6cbaa441 100644 --- a/r5dev/tier0/cmd.h +++ b/r5dev/tier0/cmd.h @@ -20,14 +20,14 @@ public: //----------------------------------------------------------------------------- // Purpose: Command buffer context //----------------------------------------------------------------------------- -typedef enum +enum class ECommandTarget_t : int { CBUF_FIRST_PLAYER = 0, CBUF_LAST_PLAYER = MAX_SPLITSCREEN_CLIENTS - 1, CBUF_SERVER = CBUF_LAST_PLAYER + 1, CBUF_COUNT, -} ECommandTarget_t; +}; //----------------------------------------------------------------------------- // Sources of console commands