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

Commit

Permalink
Track demo joins (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Jun 26, 2020
1 parent decb022 commit 4348d6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit 4348d6d

Please sign in to comment.