Skip to content

Commit

Permalink
Fixed viz_spectator in recordings and respawn delay for build-in bots
Browse files Browse the repository at this point in the history
Former-commit-id: 9868f6e
  • Loading branch information
mwydmuch committed Jun 11, 2017
1 parent 27bc60d commit 24b72ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vizdoom/src/p_interaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ void AActor::Die (AActor *source, AActor *inflictor, int dmgflags)
if (bglobal.botnum && !demoplayback)
{
if (player->Bot != NULL)
player->Bot->t_respawn = (pr_botrespawn()%15)+((bglobal.botnum-1)*2)+TICRATE+1;
player->Bot->t_respawn = (pr_botrespawn()%15)+((bglobal.botnum-1)*2) + *viz_respawn_delay * TICRATE + 1;

//Added by MC: Discard enemies.
for (int i = 0; i < MAXPLAYERS; i++)
Expand Down
2 changes: 1 addition & 1 deletion src/vizdoom/src/viz_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ CVAR (Int, viz_override_player, 0, 0)
CVAR (Bool, viz_loop_map, false, CVAR_NOSET | CVAR_SERVERINFO)
CVAR (Bool, viz_nocheat, false, CVAR_NOSET | CVAR_SERVERINFO)
CVAR (Int, viz_respawn_delay, 1, CVAR_DEMOSAVE | CVAR_SERVERINFO)
CVAR (Bool, viz_spectator, false, CVAR_USERINFO)
CVAR (Bool, viz_spectator, false, CVAR_DEMOSAVE | CVAR_USERINFO)

CCMD(viz_set_seed){
viz_seed.CmdSet(argv[1]);
Expand Down

0 comments on commit 24b72ed

Please sign in to comment.