foxygit / doom Log in
commit bba32942c4cd24ed08ab56eebdc7dbe57b68a33d
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue May 15 20:01:23 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue May 15 20:01:23 2018 +0300

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

diff --git a/src/strife/r_data.c b/src/strife/r_data.c
index fb689a8b..b20a79db 100644
--- a/src/strife/r_data.c
+++ b/src/strife/r_data.c
@@ -796,7 +796,7 @@ int	R_CheckTextureNumForName(const char *name)
 // Calls R_CheckTextureNumForName,
 //  aborts with error message.
 //
-int	R_TextureNumForName (char* name)
+int	R_TextureNumForName (const char* name)
 {
     int		i;

diff --git a/src/strife/r_data.h b/src/strife/r_data.h
index de173345..927d3058 100644
--- a/src/strife/r_data.h
+++ b/src/strife/r_data.h
@@ -46,7 +46,7 @@ int R_FlatNumForName (char* name);

 // Called by P_Ticker for switches and animations,
 // returns the texture number for the texture name.
-int R_TextureNumForName (char *name);
+int R_TextureNumForName (const char *name);
 int R_CheckTextureNumForName (const char *name);
 void R_SoundNumForDoor(vldoor_t* door); // villsa [STRIFE]