mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'viewpointswitch-fix' into 'next'
Fix incorrect newdisplayplayer in forced ViewpointSwitch See merge request STJr/SRB2!814
This commit is contained in:
commit
2e25a5b56d
4 changed files with 8 additions and 8 deletions
|
|
@ -2559,7 +2559,7 @@ static void CL_RemovePlayer(INT32 playernum, kickreason_t reason)
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
// Call ViewpointSwitch hooks here.
|
// Call ViewpointSwitch hooks here.
|
||||||
// The viewpoint was forcibly changed.
|
// The viewpoint was forcibly changed.
|
||||||
LUAh_ViewpointSwitch(&players[consoleplayer], &players[displayplayer], true);
|
LUAh_ViewpointSwitch(&players[consoleplayer], &players[consoleplayer], true);
|
||||||
#endif
|
#endif
|
||||||
displayplayer = consoleplayer;
|
displayplayer = consoleplayer;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2845,7 +2845,7 @@ static void Got_Teamchange(UINT8 **cp, INT32 playernum)
|
||||||
// Call ViewpointSwitch hooks here.
|
// Call ViewpointSwitch hooks here.
|
||||||
// The viewpoint was forcibly changed.
|
// The viewpoint was forcibly changed.
|
||||||
if (displayplayer != consoleplayer) // You're already viewing yourself. No big deal.
|
if (displayplayer != consoleplayer) // You're already viewing yourself. No big deal.
|
||||||
LUAh_ViewpointSwitch(&players[playernum], &players[displayplayer], true);
|
LUAh_ViewpointSwitch(&players[consoleplayer], &players[consoleplayer], true);
|
||||||
#endif
|
#endif
|
||||||
displayplayer = consoleplayer;
|
displayplayer = consoleplayer;
|
||||||
}
|
}
|
||||||
|
|
@ -3751,11 +3751,11 @@ static void ExitMove_OnChange(void)
|
||||||
{
|
{
|
||||||
if (players[i].mo->target && players[i].mo->target->type == MT_SIGN)
|
if (players[i].mo->target && players[i].mo->target->type == MT_SIGN)
|
||||||
P_SetTarget(&players[i].mo->target, NULL);
|
P_SetTarget(&players[i].mo->target, NULL);
|
||||||
|
|
||||||
if (players[i].pflags & PF_FINISHED)
|
if (players[i].pflags & PF_FINISHED)
|
||||||
P_GiveFinishFlags(&players[i]);
|
P_GiveFinishFlags(&players[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
CONS_Printf(M_GetText("Players can now move after completing the level.\n"));
|
CONS_Printf(M_GetText("Players can now move after completing the level.\n"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1718,7 +1718,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
// Call ViewpointSwitch hooks here.
|
// Call ViewpointSwitch hooks here.
|
||||||
// The viewpoint was forcibly changed.
|
// The viewpoint was forcibly changed.
|
||||||
LUAh_ViewpointSwitch(player, &players[displayplayer], true);
|
LUAh_ViewpointSwitch(player, &players[consoleplayer], true);
|
||||||
#endif
|
#endif
|
||||||
displayplayer = consoleplayer;
|
displayplayer = consoleplayer;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -395,7 +395,7 @@ void P_GiveFinishFlags(player_t *player)
|
||||||
mobj_t* flag = P_SpawnMobjFromMobj(player->mo, xoffs, yoffs, 0, MT_FINISHFLAG);
|
mobj_t* flag = P_SpawnMobjFromMobj(player->mo, xoffs, yoffs, 0, MT_FINISHFLAG);
|
||||||
flag->angle = angle;
|
flag->angle = angle;
|
||||||
angle += FixedAngle(120*FRACUNIT);
|
angle += FixedAngle(120*FRACUNIT);
|
||||||
|
|
||||||
P_SetTarget(&flag->target, player->mo);
|
P_SetTarget(&flag->target, player->mo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -10653,7 +10653,7 @@ boolean P_SpectatorJoinGame(player_t *player)
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
// Call ViewpointSwitch hooks here.
|
// Call ViewpointSwitch hooks here.
|
||||||
// The viewpoint was forcibly changed.
|
// The viewpoint was forcibly changed.
|
||||||
LUAh_ViewpointSwitch(player, &players[displayplayer], true);
|
LUAh_ViewpointSwitch(player, &players[consoleplayer], true);
|
||||||
#endif
|
#endif
|
||||||
displayplayer = consoleplayer;
|
displayplayer = consoleplayer;
|
||||||
}
|
}
|
||||||
|
|
@ -10702,7 +10702,7 @@ boolean P_SpectatorJoinGame(player_t *player)
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
// Call ViewpointSwitch hooks here.
|
// Call ViewpointSwitch hooks here.
|
||||||
// The viewpoint was forcibly changed.
|
// The viewpoint was forcibly changed.
|
||||||
LUAh_ViewpointSwitch(player, &players[displayplayer], true);
|
LUAh_ViewpointSwitch(player, &players[consoleplayer], true);
|
||||||
#endif
|
#endif
|
||||||
displayplayer = consoleplayer;
|
displayplayer = consoleplayer;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue