foxygit / doom Log in
commit 5003ab5283ff27c951c97b064c26cdde2bb0f427
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Sat Mar 20 22:06:06 2021 +0100
Commit:     GitHub <noreply@github.com>
CommitDate: Sat Mar 20 22:06:06 2021 +0100

    declare par time arrays as static const (#1363)
---
 src/doom/g_game.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/doom/g_game.c b/src/doom/g_game.c
index ff4c3763..7efc6529 100644
--- a/src/doom/g_game.c
+++ b/src/doom/g_game.c
@@ -1303,7 +1303,7 @@ void G_ScreenShot (void)


 // DOOM Par Times
-int pars[4][10] =
+static const int pars[4][10] =
 {
     {0},
     {0,30,75,120,90,165,180,180,30,165},
@@ -1312,7 +1312,7 @@ int pars[4][10] =
 };

 // DOOM II Par Times
-int cpars[32] =
+static const int cpars[32] =
 {
     30,90,120,120,90,150,120,120,270,90,	//  1-10
     210,150,150,150,210,150,420,150,210,150,	// 11-20
@@ -1321,7 +1321,7 @@ int cpars[32] =
 };

 // Chex Quest Par Times
-int chexpars[6] =
+static const int chexpars[6] =
 {
     0,120,360,480,200,360
 };