diff --git a/src/d_clisrv.c b/src/d_clisrv.c index c0179ca1b..d20c0e5ea 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -2935,9 +2935,9 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum) if (botingame) players[newplayernum].bot = 1; // Same goes for player 2 when relevant - players[newplayernum].pflags &= ~(/*PF_FLIPCAM|*/PF_ANALOGMODE); - //if (cv_flipcam2.value) - //players[newplayernum].pflags |= PF_FLIPCAM; + players[newplayernum].pflags &= ~(PF_FLIPCAM|PF_ANALOGMODE); + if (cv_flipcam2.value) + players[newplayernum].pflags |= PF_FLIPCAM; if (cv_analog2.value) players[newplayernum].pflags |= PF_ANALOGMODE; } diff --git a/src/p_inter.c b/src/p_inter.c index b8101f12b..8fb517d5c 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -2068,7 +2068,7 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source) if (target->player->lives <= 0) // Tails 03-14-2000 { - if (P_IsLocalPlayer(target->player) && target->player == &players[consoleplayer]) + if (P_IsLocalPlayer(target->player)/* && target->player == &players[consoleplayer] */) { S_StopMusic(); // Stop the Music! Tails 03-14-2000 S_ChangeMusicInternal("gmover", false); // Yousa dead now, Okieday? Tails 03-14-2000 diff --git a/src/p_user.c b/src/p_user.c index 45dd47639..6942f2fcd 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -7716,8 +7716,25 @@ static void P_DeathThink(player_t *player) } // Return to level music - if (netgame && player->deadtimer == gameovertics && P_IsLocalPlayer(player)) - S_ChangeMusic(mapmusname, mapmusflags, true); + if (player->lives <= 0) + { + if (netgame) + { + if (player->deadtimer == gameovertics && P_IsLocalPlayer(player)) + S_ChangeMusic(mapmusname, mapmusflags, true); + } + else if (multiplayer) // local multiplayer only + { + if (player->deadtimer != gameovertics) + ; + // Restore the other player's music once we're dead for long enough + // -- that is, as long as they aren't dead too + else if (player == &players[displayplayer] && players[secondarydisplayplayer].lives > 0) + P_RestoreMusic(&players[secondarydisplayplayer]); + else if (player == &players[secondarydisplayplayer] && players[displayplayer].lives > 0) + P_RestoreMusic(&players[displayplayer]); + } + } } if (!player->mo) diff --git a/src/r_main.c b/src/r_main.c index a6b13302e..3b71b7f92 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -1382,6 +1382,7 @@ void R_RegisterEngineStuff(void) CV_RegisterVar(&cv_allowmlook); CV_RegisterVar(&cv_homremoval); CV_RegisterVar(&cv_flipcam); + CV_RegisterVar(&cv_flipcam2); // Enough for dedicated server if (dedicated)