eeh do it later

idk looks better imo
This commit is contained in:
Alug committed 2023-11-15 20:53:25 +01:00
1 parent 7f7ea2c592
commit 53febafd50
1 file changed
+10 -8
+10 -8
View File
@@ -8062,10 +8062,7 @@ boolean P_SpectatorJoinGame(player_t *player)
// Pressing fire assigns you to a team that needs players if allowed.
// Partial code reproduction from p_tick.c autobalance code.
else if (G_GametypeHasTeams())
{
if (P_IsLocalPlayer(player))
localaiming[0] = 0;
{
INT32 changeto = 0;
INT32 z, numplayersred = 0, numplayersblue = 0;
@@ -8101,6 +8098,10 @@ boolean P_SpectatorJoinGame(player_t *player)
player->kartstuff[k_spectatewait] = 0;
player->ctfteam = changeto;
player->playerstate = PST_REBORN;
//reset camera
if (P_IsLocalPlayer(player))
localaiming[0] = 0;
//Reset away view
if (P_IsLocalPlayer(player) && displayplayers[0] != consoleplayer)
@@ -8115,10 +8116,7 @@ boolean P_SpectatorJoinGame(player_t *player)
}
// Joining in game from firing.
else
{
if (P_IsLocalPlayer(player))
localaiming[0] = 0;
{
if (player->mo)
{
P_RemoveMobj(player->mo);
@@ -8129,6 +8127,10 @@ boolean P_SpectatorJoinGame(player_t *player)
player->kartstuff[k_spectatewait] = 0;
player->playerstate = PST_REBORN;
//reset camera
if (P_IsLocalPlayer(player))
localaiming[0] = 0;
//Reset away view
if (P_IsLocalPlayer(player) && displayplayers[0] != consoleplayer)
displayplayers[0] = consoleplayer;