shithub: choc

Download patch

ref: e026fc872994b5d0069f0ef22b2ca118379e624f
parent: 0e86f377a3cd528ed8cbbf403516f79ee5dffbac
author: Turo Lamminen <[email protected]>
date: Tue Aug 7 14:19:16 EDT 2018

hexen: Make SC_Compare parameter const

--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -915,7 +915,7 @@
 void SC_MustGetNumber(void);
 void SC_UnGet(void);
 //boolean SC_Check(void);
-boolean SC_Compare(char *text);
+boolean SC_Compare(const char *text);
 int SC_MatchString(char **strings);
 int SC_MustMatchString(char **strings);
 void SC_ScriptError(const char *message);
--- a/src/hexen/sc_man.c
+++ b/src/hexen/sc_man.c
@@ -431,7 +431,7 @@
 //
 //==========================================================================
 
-boolean SC_Compare(char *text)
+boolean SC_Compare(const char *text)
 {
     if (strcasecmp(text, sc_String) == 0)
     {