shithub: choc

Download patch

ref: 5f92a20c1c21e5ae99ba720fd7e1c38914cbf3ac
parent: 595ef234b0d92e0cd63ab4b69eb393e5f183ee4a
author: Turo Lamminen <[email protected]>
date: Sat Jul 28 11:35:08 EDT 2018

doom: Make M_WriteText string parameter const

--- a/src/doom/m_menu.c
+++ b/src/doom/m_menu.c
@@ -214,7 +214,7 @@
 static void M_DrawSaveLoadBorder(int x,int y);
 static void M_SetupNextMenu(menu_t *menudef);
 static void M_DrawThermo(int x,int y,int thermWidth,int thermDot);
-static void M_WriteText(int x, int y, char *string);
+static void M_WriteText(int x, int y, const char *string);
 static int  M_StringWidth(char *string);
 static int  M_StringHeight(const char *string);
 static void M_StartMessage(const char *string, void *routine, boolean input);
@@ -1274,7 +1274,7 @@
 M_WriteText
 ( int		x,
   int		y,
-  char*		string)
+  const char *string)
 {
     int		w;
     const char *ch;