mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 00:56:40 -04:00
Remove Player parameter from Camera::GetPosition
This commit is contained in:
parent
bce034185b
commit
8fbc76eace
@ -53,7 +53,7 @@ struct Camera {
|
||||
/* Returns the current orientation of the camera. */
|
||||
Vec2 (*GetOrientation)(void);
|
||||
/* Returns the current interpolated position of the camera. */
|
||||
Vec3 (*GetPosition)(struct LocalPlayer* p, float t);
|
||||
Vec3 (*GetPosition)(float t);
|
||||
|
||||
/* Called to update the camera's state. */
|
||||
/* Typically, this is used to adjust yaw/pitch based on accumulated mouse movement. */
|
||||
|
@ -1049,7 +1049,7 @@ void LocalPlayers_MoveToSpawn(struct LocationUpdate* update) {
|
||||
}
|
||||
|
||||
/* TODO: This needs to be before new map... */
|
||||
Camera.CurrentPos = Camera.Active->GetPosition(p, 0.0f);
|
||||
Camera.CurrentPos = Camera.Active->GetPosition(0.0f);
|
||||
}
|
||||
|
||||
void LocalPlayer_CalcDefaultSpawn(struct LocalPlayer* p, struct LocationUpdate* update) {
|
||||
|
@ -789,7 +789,7 @@ static CC_INLINE void Game_RenderFrame(void) {
|
||||
t = (float)(entTask.accumulator / entTask.interval);
|
||||
LocalPlayer_SetInterpPosition(Entities.CurPlayer, t);
|
||||
|
||||
Camera.CurrentPos = Camera.Active->GetPosition(Entities.CurPlayer, t);
|
||||
Camera.CurrentPos = Camera.Active->GetPosition(t);
|
||||
/* NOTE: EnvRenderer_UpdateFog also also sets clear color */
|
||||
EnvRenderer_UpdateFog();
|
||||
AudioBackend_Tick();
|
||||
|
Loading…
x
Reference in New Issue
Block a user