foxygit / doom Log in
commit 464c1ca1cb72976ba162b720165a7a35b5e7d96b
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Aug 7 18:04:57 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Aug 7 18:04:57 2018 +0300

    hexen: Make R_TextureNumForName parameter const
---
 src/hexen/h2def.h  | 2 +-
 src/hexen/r_data.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hexen/h2def.h b/src/hexen/h2def.h
index aa001270..b31a6900 100644
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -887,7 +887,7 @@ void R_SetViewSize(int blocks, int detail);

 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
diff --git a/src/hexen/r_data.c b/src/hexen/r_data.c
index 7a782194..e020612c 100644
--- a/src/hexen/r_data.c
+++ b/src/hexen/r_data.c
@@ -574,7 +574,7 @@ int R_CheckTextureNumForName(const char *name)
 ================
 */

-int R_TextureNumForName(char *name)
+int R_TextureNumForName(const char *name)
 {
     int i;
     //char  namet[9];