From d3448a7a404a7502c44485e4237a0edab2cac2dd Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Tue, 5 May 2020 00:41:25 +0200 Subject: [PATCH] Convert STR_NONE and STR_VIEWPORT to constexpr, remove C cast (#11629) --- src/openrct2/localisation/StringIds.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/localisation/StringIds.h b/src/openrct2/localisation/StringIds.h index a8a62267d3..fe005f4b9a 100644 --- a/src/openrct2/localisation/StringIds.h +++ b/src/openrct2/localisation/StringIds.h @@ -12,8 +12,8 @@ #include "../common.h" -#define STR_NONE ((rct_string_id)-1) -#define STR_VIEWPORT ((rct_string_id)-2) +constexpr const rct_string_id STR_NONE = 0xFFFF; +constexpr const rct_string_id STR_VIEWPORT = 0xFFFE; enum {