shithub: choc

Download patch

ref: fe5173fde94c26c498266ad89b21a985aea7900f
parent: c0f32f99233c8b8bbf1b1c89d07a59d2f1d07112
author: Turo Lamminen <[email protected]>
date: Tue Apr 24 16:13:06 EDT 2018

heretic: Make MN_DrTextB text parameter const

--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -820,7 +820,7 @@
 void MN_Drawer(void);
 void MN_DrTextA(const char *text, int x, int y);
 int MN_TextAWidth(const char *text);
-void MN_DrTextB(char *text, int x, int y);
+void MN_DrTextB(const char *text, int x, int y);
 int MN_TextBWidth(char *text);
 
 #include "sounds.h"
--- a/src/heretic/mn_menu.c
+++ b/src/heretic/mn_menu.c
@@ -388,7 +388,7 @@
 //
 //---------------------------------------------------------------------------
 
-void MN_DrTextB(char *text, int x, int y)
+void MN_DrTextB(const char *text, int x, int y)
 {
     char c;
     patch_t *p;