ref: 464c1ca1cb72976ba162b720165a7a35b5e7d96b
parent: 4f2fb75e1cc373028107ca62ee97b75ae90ba373
author: Turo Lamminen <[email protected]>
date: Tue Aug 7 14:04:57 EDT 2018
hexen: Make R_TextureNumForName parameter const
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -887,7 +887,7 @@
int R_FlatNumForName(const char *name);
-int R_TextureNumForName(char *name);
+int R_TextureNumForName(const char *name);
int R_CheckTextureNumForName(const char *name);
// called by P_Ticker for switches and animations
// returns the texture number for the texture name
--- a/src/hexen/r_data.c
+++ b/src/hexen/r_data.c
@@ -574,7 +574,7 @@
================
*/
-int R_TextureNumForName(char *name)
+int R_TextureNumForName(const char *name)
{
int i;
//char namet[9];