Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Track demo joins #97

Merged
merged 1 commit into from Jun 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions prboom2/src/d_event.h
Expand Up @@ -114,6 +114,8 @@ BT_WEAPONMASK_OLD = (8+16+32),//e6y
BTS_SAVEMASK = (4+8+16),
BTS_SAVESHIFT = 2,

// Demo joined.
BT_JOIN = 64
} buttoncode_t;


Expand Down
4 changes: 4 additions & 0 deletions prboom2/src/g_game.c
Expand Up @@ -4065,6 +4065,10 @@ void G_ReadDemoContinueTiccmd (ticcmd_t* cmd)
{
demo_continue_p = NULL;
democontinue = false;
// Sometimes this bit is not available
if ((demo_compatibility && !prboom_comp[PC_ALLOW_SSG_DIRECT].state) ||
(cmd->buttons & BT_CHANGE) == 0)
cmd->buttons |= BT_JOIN;
}
}

Expand Down