From 5e1e8366cef39b41893dee3ee9c2c6da91bdcaac Mon Sep 17 00:00:00 2001 From: Claudel-D-Roy <112507354+Claudel-D-Roy@users.noreply.github.com> Date: Sat, 16 Dec 2023 15:52:27 -0500 Subject: [PATCH] j'push des choses --- SQCSim2021/remoteplayer.cpp | 47 +------------------------------------ 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/SQCSim2021/remoteplayer.cpp b/SQCSim2021/remoteplayer.cpp index 3287a59..3a47218 100644 --- a/SQCSim2021/remoteplayer.cpp +++ b/SQCSim2021/remoteplayer.cpp @@ -31,54 +31,9 @@ void RemotePlayer::Feed(const netprot::Output out) { m_position = Vector3f(out.position); m_direction = Vector3f(out.direction); - current.states = out.states; + - //current.position = out.position; - //current.direction = out.direction; - //current.states = out.states; - //current.id = out.id; - - //if (current.position != previous.position) - //{ - // Vector3f positionDelta = current.position - previous.position; - // m_position = current.position + positionDelta; - // m_direction = current.direction; - - //} - - //if(current.direction != previous.direction) - //{ - // m_direction = current.direction; - // current.direction = current.direction; - //} - - //if (current.states.shooting) { - // m_animstate = Anim::SHOOTING; - //} - //else if (current.states.jumping) { - // m_animstate = Anim::JUMPING; - //} - //else if (current.states.dead) { - // m_animstate = Anim::DEAD; - //} - //else if(current.states.powerup){ - // m_animstate = Anim::POWERUP; - //} - //else if (current.states.still) { - // m_animstate = Anim::STILL; - //} - //else if (current.states.running) { - // m_animstate = Anim::RUNNING; - //} - - //previous.direction = current.direction; - //previous.position = current.position; - //previous.states = current.states; - //previous.id = current.id; - - //m_direction = current.direction; - //m_position = current.position; }