ref: a98b617237b6a3cb7e8da30fa2e823d54a890d08
parent: 338be540ce37bc7c93adfbd8d51c2127633e2278
author: Turo Lamminen <[email protected]>
date: Tue Dec 11 14:13:19 EST 2018
hexen: Make sprnames contents and related function parameters const
--- a/src/hexen/info.c
+++ b/src/hexen/info.c
@@ -17,7 +17,7 @@
#include "i_swap.h"
// generated by stateco
-char *sprnames[] = {
+const char *sprnames[] = {
"MAN1","ACLO","TLGL","FBL1","XPL1","ARRW","DART","RIPP","CFCF","BLAD",
"SHRD","FFSM","FFLG","PTN1","PTN2","SOAR","INVU","SUMN","TSPK","TELO",
"TRNG","ROCK","FOGS","FOGM","FOGL","SGSA","SGSB","PORK","EGGM","FHFX",
--- a/src/hexen/info.h
+++ b/src/hexen/info.h
@@ -3182,7 +3182,7 @@
} state_t;
extern state_t states[NUMSTATES];
-extern char *sprnames[];
+extern const char *sprnames[];
--- a/src/hexen/r_local.h
+++ b/src/hexen/r_local.h
@@ -493,7 +493,7 @@
void R_AddSprites(sector_t * sec);
void R_AddPSprites(void);
void R_DrawSprites(void);
-void R_InitSprites(char **namelist);
+void R_InitSprites(const char **namelist);
void R_ClearSprites(void);
void R_DrawMasked(void);
void R_ClipVisSprite(vissprite_t * vis, int xl, int xh);
--- a/src/hexen/r_things.c
+++ b/src/hexen/r_things.c
@@ -144,9 +144,9 @@
=================
*/
-void R_InitSpriteDefs(char **namelist)
+void R_InitSpriteDefs(const char **namelist)
{
- char **check;
+ const char **check;
int i, l, frame, rotation;
int start, end;
@@ -258,7 +258,7 @@
===================
*/
-void R_InitSprites(char **namelist)
+void R_InitSprites(const char **namelist)
{
int i;