shithub: choc

Download patch

ref: 350cc9f150b24d6db8af5b8b0959cd13c76fcaa3
parent: f95fab846310b6101325c6a5413f7316e94f79f1
author: Turo Lamminen <[email protected]>
date: Tue May 15 15:59:55 EDT 2018

strife: Make R_CheckTextureNumForName parameter const

--- a/src/strife/r_data.c
+++ b/src/strife/r_data.c
@@ -765,7 +765,7 @@
 // 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;
--- a/src/strife/r_data.h
+++ b/src/strife/r_data.h
@@ -47,7 +47,7 @@
 // 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);
 void R_SoundNumForDoor(vldoor_t* door); // villsa [STRIFE]
 
 #endif