From 08701ca1901cf76ece6868be5eb64e5ddcefa6c4 Mon Sep 17 00:00:00 2001 From: Kp Date: Mon, 21 Sep 2020 03:18:12 +0000 Subject: [PATCH] Store kmatrix_result in a uint8_t size enum --- common/main/kmatrix.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/main/kmatrix.h b/common/main/kmatrix.h index c9d778619..c1e1140f1 100644 --- a/common/main/kmatrix.h +++ b/common/main/kmatrix.h @@ -27,9 +27,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #include "maths.h" -#ifdef __cplusplus +namespace dcx { -enum class kmatrix_result +enum class kmatrix_result : uint8_t { abort, proceed, @@ -44,11 +44,11 @@ enum class kmatrix_network : uint8_t multiplayer = 4, }; +} + #ifdef dsx namespace dsx { kmatrix_result kmatrix_view(kmatrix_network network); // shows matrix screen. Retruns 0 if aborted (quitting game) and 1 if proceeding to next level if applicable. kmatrix_result multi_endlevel_score(); } #endif - -#endif