foxygit / doom Log in
commit 6f1d394d407e5b31435fe8bec4121f64bac752ec
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Aug 7 18:14:26 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Aug 7 18:45:11 2018 +0300

    hexen: Make SC_OpenFile parameter const
---
 src/hexen/h2def.h  | 2 +-
 src/hexen/sc_man.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hexen/h2def.h b/src/hexen/h2def.h
index 8170135d..0b524647 100644
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -906,7 +906,7 @@ int M_DrawText(int x, int y, boolean direct, char *string);

 void SC_Open(const char *name);
 void SC_OpenLump(const char *name);
-void SC_OpenFile(char *name);
+void SC_OpenFile(const char *name);
 void SC_Close(void);
 boolean SC_GetString(void);
 void SC_MustGetString(void);
diff --git a/src/hexen/sc_man.c b/src/hexen/sc_man.c
index 08301ac2..ee953814 100644
--- a/src/hexen/sc_man.c
+++ b/src/hexen/sc_man.c
@@ -111,7 +111,7 @@ void SC_OpenLump(const char *name)
 //
 //==========================================================================

-void SC_OpenFile(char *name)
+void SC_OpenFile(const char *name)
 {
     OpenScript(name, FILE_ZONE_SCRIPT);
 }