commit 4c9a70adf615be068ae085060b9056c9b956aa93
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Apr 24 18:43:31 2018 +0300
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Apr 24 18:43:31 2018 +0300
doom: Make R_CheckTextureNumForName parameter const
---
src/doom/r_data.c | 2 +-
src/doom/r_data.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/doom/r_data.c b/src/doom/r_data.c
index 3a3d888f..2d2c4d67 100644
--- a/src/doom/r_data.c
+++ b/src/doom/r_data.c
@@ -741,7 +741,7 @@ int R_FlatNumForName(const char *name)
// Check whether texture is available.
// Filter out NoTexture indicator.
//
-int R_CheckTextureNumForName (char *name)
+int R_CheckTextureNumForName(const char *name)
{
texture_t *texture;
int key;
diff --git a/src/doom/r_data.h b/src/doom/r_data.h
index 76116080..3d5105b4 100644
--- a/src/doom/r_data.h
+++ b/src/doom/r_data.h
@@ -46,6 +46,6 @@ int R_FlatNumForName(const 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_CheckTextureNumForName (char *name);
+int R_CheckTextureNumForName(const char *name);
#endif