shithub: choc

Download patch

ref: 4c9a70adf615be068ae085060b9056c9b956aa93
parent: 8dd2c9df0f5f92fddfe809401a5f13521a65b5f0
author: Turo Lamminen <turotl@gmail.com>
date: Tue Apr 24 14:43:31 EDT 2018

doom: Make R_CheckTextureNumForName parameter const

--- a/src/doom/r_data.c
+++ b/src/doom/r_data.c
@@ -741,7 +741,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/doom/r_data.h
+++ b/src/doom/r_data.h
@@ -46,6 +46,6 @@
 // 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