Spectation: add dedicated pathway for spectator mode (#5303)
* Spectation: add dedicated pathway for spectator mode + Sync player rotation with spectated entity. + Add dedicated infrastructure to cPlayer for handling spectation, instead of misusing entity riding. * Avoid infinite recursion when exiting spectation, fixes #5296 * AttachTo: Change parameter to reference
This commit is contained in:
@@ -67,8 +67,8 @@ void cPig::OnRightClicked(cPlayer & a_Player)
|
||||
m_Attachee->Detach();
|
||||
}
|
||||
|
||||
// Attach the player to this pig
|
||||
a_Player.AttachTo(this);
|
||||
// Attach the player to this pig:
|
||||
a_Player.AttachTo(*this);
|
||||
}
|
||||
else if (a_Player.GetEquippedItem().m_ItemType == E_ITEM_SADDLE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user