Skip to content
Snippets Groups Projects
Commit 66a5b2f2 authored by Vlad Doc's avatar Vlad Doc
Browse files

Merge branch SRB2:next into linux-customshader-compilation-fix

parents 26da1e1e b6544efc
No related branches found
No related tags found
1 merge request!2418Linux customshader compilation fix
......@@ -405,7 +405,6 @@ void readfreeslots(MYFILE *f)
{
char *s = Z_Malloc(MAXLINELEN, PU_STATIC, NULL);
char *word,*type;
char *tmp;
int i;
do
......@@ -415,10 +414,13 @@ void readfreeslots(MYFILE *f)
if (s[0] == '\n')
break;
tmp = strchr(s, '#');
if (tmp)
*tmp = '\0';
if (s == tmp)
char *hashtag = strchr(s, '#');
char *space = strchr(s, ' ');
if (hashtag)
*hashtag = '\0';
if (space)
*space = '\0';
if (s == hashtag || s == space)
continue; // Skip comment lines, but don't break.
type = strtok(s, "_");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment