Merge branch 'gtr-shift' into 'next'

1 left shifted by zero is still 1

See merge request STJr/SRB2!766
This commit is contained in:
Jaime Passos 2020-02-11 23:33:43 -05:00
commit d8793ce579
1 changed files with 1 additions and 4 deletions

View File

@ -1293,10 +1293,7 @@ static void readgametype(MYFILE *f, char *gtname)
UINT32 wordgt = 0;
for (j = 0; GAMETYPERULE_LIST[j]; j++)
if (fastcmp(word, GAMETYPERULE_LIST[j])) {
if (!j) // GTR_CAMPAIGN
wordgt |= 1;
else
wordgt |= (1<<j);
wordgt |= (1<<j);
if (i || word2[0] == 'T' || word2[0] == 'Y')
newgtrules |= wordgt;
break;