shithub: choc

Download patch

ref: 984a5e2d00bbae1e6e3e1efa25594b2361e92166
parent: d1f6b7447d1cb7d30efe6c7ec79ebc629fe8c058
author: Turo Lamminen <[email protected]>
date: Sat Jan 26 10:45:47 EST 2019

strife: Make HUlib_drawYellowText text parameter const

--- a/src/strife/hu_lib.c
+++ b/src/strife/hu_lib.c
@@ -41,10 +41,10 @@
 //
 // haleyjd 20100918: [STRIFE] New function.
 //
-void HUlib_drawYellowText(int x, int y, char *text)
+void HUlib_drawYellowText(int x, int y, const char *text)
 {
     int start_x = x;
-    char *rover = text;
+    const char *rover = text;
     char c;
 
     while((c = *rover++))
--- a/src/strife/hu_lib.h
+++ b/src/strife/hu_lib.h
@@ -112,7 +112,7 @@
 void	HUlib_eraseTextLine(hu_textline_t *l);
 
 // villsa [STRIFE]
-void HUlib_drawYellowText(int x, int y, char *text);
+void HUlib_drawYellowText(int x, int y, const char *text);
 
 
 //