Merge branch 'no-demo-visit' into 'next'

Don't count demo playback as visiting a level.

Closes #327 and #340

See merge request STJr/SRB2!1177
This commit is contained in:
James R 2020-10-12 18:05:43 -04:00
commit d1c8d41f94

View file

@ -4187,9 +4187,9 @@ boolean P_LoadLevel(boolean fromnetsave)
nextmapoverride = 0;
skipstats = 0;
if (!(netgame || multiplayer) && (!modifiedgame || savemoddata))
if (!(netgame || multiplayer || demoplayback) && (!modifiedgame || savemoddata))
mapvisited[gamemap-1] |= MV_VISITED;
else
else if (netgame || multiplayer)
mapvisited[gamemap-1] |= MV_MP; // you want to record that you've been there this session, but not permanently
levelloading = false;