shithub: choc

Download patch

ref: 6161cfe4f41112818075ef183227ed77c28641b5
parent: 052d6e3ba9de4f8810d73d45da50d1a823689630
author: Turo Lamminen <[email protected]>
date: Sat May 26 11:21:22 EDT 2018

Make D_NonVanillaRecord feature parameter const

--- a/src/d_loop.c
+++ b/src/d_loop.c
@@ -823,7 +823,7 @@
 // this extension (no extensions are allowed if -strictdemos is given
 // on the command line). A warning is shown on the console using the
 // provided string describing the non-vanilla expansion.
-boolean D_NonVanillaRecord(boolean conditional, char *feature)
+boolean D_NonVanillaRecord(boolean conditional, const char *feature)
 {
     if (!conditional || StrictDemos())
     {
--- a/src/d_loop.h
+++ b/src/d_loop.h
@@ -78,7 +78,7 @@
 extern int gametic, ticdup;
 
 // Check if it is permitted to record a demo with a non-vanilla feature.
-boolean D_NonVanillaRecord(boolean conditional, char *feature);
+boolean D_NonVanillaRecord(boolean conditional, const char *feature);
 
 // Check if it is permitted to play back a demo with a non-vanilla feature.
 boolean D_NonVanillaPlayback(boolean conditional, int lumpnum,