foxygit / doom Log in
commit 5bed7c7ab75eb0192fa89d66e70c7f8428c763e2
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat May 5 17:39:03 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat May 5 17:41:40 2018 +0300

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

diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index 1229ef68..4716dda8 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -753,7 +753,7 @@ void R_SetViewSize(int blocks, int detail);

 int R_FlatNumForName(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/heretic/r_data.c b/src/heretic/r_data.c
index 75d19127..8865f7a5 100644
--- a/src/heretic/r_data.c
+++ b/src/heretic/r_data.c
@@ -618,7 +618,7 @@ int R_CheckTextureNumForName(const char *name)
 ================
 */

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