some const/constexpr stuff
diff --git a/src/engine/GPURenderer/r_init.cpp b/src/engine/GPURenderer/r_init.cpp
index 2928182..921aa24 100644
--- a/src/engine/GPURenderer/r_init.cpp
+++ b/src/engine/GPURenderer/r_init.cpp
@@ -407,7 +407,7 @@ typedef struct vidmode_s
} vidmode_t;
//Dushan
-static const vidmode_t r_vidModes[] =
+static constexpr vidmode_t r_vidModes[] =
{
{ "Mode 0: 320x240 (4:3)", 320, 240, 1 },
{ "Mode 1: 320x200 (16:10)", 320, 200, 1 },
diff --git a/src/engine/client/clientParse.cpp b/src/engine/client/clientParse.cpp
index bc668cc..e31c36b 100644
--- a/src/engine/client/clientParse.cpp
+++ b/src/engine/client/clientParse.cpp
@@ -57,7 +57,7 @@ idClientParseSystemLocal::~idClientParseSystemLocal( void )
{
}
-valueType* svc_strings[256] =
+constexpr pointer svc_strings[256] =
{
"svc_bad",
@@ -72,7 +72,12 @@ valueType* svc_strings[256] =
"svc_EOF"
};
-void idClientParseSystemLocal::ShowNet( msg_t* msg, valueType* s )
+/*
+===============
+idClientParseSystemLocal::ShowNet
+===============
+*/
+void idClientParseSystemLocal::ShowNet( const msg_t* msg, pointer s )
{
if( cl_shownet->integer >= 2 )
{
diff --git a/src/engine/client/clientParse.hpp b/src/engine/client/clientParse.hpp
index 7249067..1ac569d 100644
--- a/src/engine/client/clientParse.hpp
+++ b/src/engine/client/clientParse.hpp
@@ -50,7 +50,7 @@ public:
~idClientParseSystemLocal();
static void ParseServerMessage( msg_t* msg );
- static void ShowNet( msg_t* msg, valueType* s );
+ static void ShowNet( const msg_t* msg, pointer s );
static bool isEntVisible( entityState_t* ent );
static void DeltaEntity( msg_t* msg, clSnapshot_t* frame, sint newnum, entityState_t* old, bool unchanged );
static void ParsePacketEntities( msg_t* msg, clSnapshot_t* oldframe, clSnapshot_t* newframe );
diff --git a/src/engine/framework/NetworkChain.cpp b/src/engine/framework/NetworkChain.cpp
index 6b0073e..360e003 100644
--- a/src/engine/framework/NetworkChain.cpp
+++ b/src/engine/framework/NetworkChain.cpp
@@ -69,7 +69,7 @@ to the new value before sending out any replies.
packetQueue_t* packetQueue = nullptr;
loopback_t loopbacks[2];
-static valueType* netsrcString[2] =
+static constexpr pointer netsrcString[2] =
{
"client",
"server"
diff --git a/src/engine/platform/systemLocal.hpp b/src/engine/platform/systemLocal.hpp
index 8a67045..0839cd9 100644
--- a/src/engine/platform/systemLocal.hpp
+++ b/src/engine/platform/systemLocal.hpp
@@ -100,7 +100,7 @@ enum keyType_t
};
// We translate axes movement into keypresses
-static sint joy_keys[16] =
+static constexpr sint joy_keys[16] =
{
K_LEFTARROW, K_RIGHTARROW,
K_UPARROW, K_DOWNARROW,
@@ -114,7 +114,7 @@ static sint joy_keys[16] =
// translate hat events into keypresses
// the 4 highest buttons are used for the first hat ...
-static sint hat_keys[16] =
+static constexpr sint hat_keys[16] =
{
K_JOY29, K_JOY30,
K_JOY31, K_JOY32,
GitHub
sha: 21c08f19