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:
@@ -152,7 +152,7 @@ void cHorse::OnRightClicked(cPlayer & a_Player)
|
||||
}
|
||||
else
|
||||
{
|
||||
a_Player.AttachTo(this);
|
||||
a_Player.AttachTo(*this);
|
||||
}
|
||||
}
|
||||
else if (a_Player.GetEquippedItem().IsEmpty())
|
||||
@@ -177,7 +177,7 @@ void cHorse::OnRightClicked(cPlayer & a_Player)
|
||||
}
|
||||
|
||||
m_TameAttemptTimes++;
|
||||
a_Player.AttachTo(this);
|
||||
a_Player.AttachTo(*this);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user