foxygit / doom Log in
commit 8dd2c9df0f5f92fddfe809401a5f13521a65b5f0
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Apr 24 18:40:56 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Apr 24 18:40:56 2018 +0300

    doom: Make R_FlatNumForName 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 18a762f4..3a3d888f 100644
--- a/src/doom/r_data.c
+++ b/src/doom/r_data.c
@@ -717,7 +717,7 @@ void R_InitData (void)
 // R_FlatNumForName
 // Retrieval, get a flat number for a flat name.
 //
-int R_FlatNumForName (char* name)
+int R_FlatNumForName(const char *name)
 {
     int		i;
     char	namet[9];
diff --git a/src/doom/r_data.h b/src/doom/r_data.h
index 66425afa..76116080 100644
--- a/src/doom/r_data.h
+++ b/src/doom/r_data.h
@@ -40,7 +40,7 @@ void R_PrecacheLevel (void);
 // Retrieval.
 // Floor/ceiling opaque texture tiles,
 // lookup by name. For animation?
-int R_FlatNumForName (char* name);
+int R_FlatNumForName(const char *name);


 // Called by P_Ticker for switches and animations,