commit 984a5e2d00bbae1e6e3e1efa25594b2361e92166
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Jan 26 15:45:47 2019 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Jan 29 18:49:25 2019 +0200
strife: Make HUlib_drawYellowText text parameter const
---
src/strife/hu_lib.c | 4 ++--
src/strife/hu_lib.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/strife/hu_lib.c b/src/strife/hu_lib.c
index f95752d0..cac27ef1 100644
--- a/src/strife/hu_lib.c
+++ b/src/strife/hu_lib.c
@@ -41,10 +41,10 @@ extern boolean D_PatchClipCallback(patch_t *patch, int x, int y); // [STRIFE]
//
// 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++))
diff --git a/src/strife/hu_lib.h b/src/strife/hu_lib.h
index 6d6375d5..5639860d 100644
--- a/src/strife/hu_lib.h
+++ b/src/strife/hu_lib.h
@@ -112,7 +112,7 @@ void HUlib_drawTextLine(hu_textline_t *l, boolean drawcursor);
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);
//