From c9ebfd348cb135da5f315706ecd06687d9d8c689 Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Wed, 13 Dec 2023 12:38:19 -0500 Subject: [PATCH] woups --- SQCSim2021/remoteplayer.cpp | 4 ++-- SQCSim2021/remoteplayer.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SQCSim2021/remoteplayer.cpp b/SQCSim2021/remoteplayer.cpp index 47bd809..3affaae 100644 --- a/SQCSim2021/remoteplayer.cpp +++ b/SQCSim2021/remoteplayer.cpp @@ -8,11 +8,11 @@ -RemotePlayer::RemotePlayer(netprot::PlayerInfo pinfo) : m_pinfo(pinfo), m_aminacc(0.0f), m_animstate(Anim::STILL), m_team_id(0), current(), previous(), m_texture_front(), Player(Vector3f(0, 0, 0)){ +RemotePlayer::RemotePlayer(netprot::PlayerInfo* pinfo) : m_pinfo(*pinfo), m_aminacc(0.0f), m_animstate(Anim::STILL), m_team_id(0), current(), previous(), m_texture_front(), Player(Vector3f(0, 0, 0)){ } -RemotePlayer::RemotePlayer(netprot::PlayerInfo pinfo, const Vector3f& pos) : m_pinfo(pinfo), m_aminacc(0.0f), m_animstate(Anim::STILL), m_team_id(0), current(), previous(), m_texture_front(), Player(pos) { +RemotePlayer::RemotePlayer(netprot::PlayerInfo* pinfo, const Vector3f& pos) : m_pinfo(*pinfo), m_aminacc(0.0f), m_animstate(Anim::STILL), m_team_id(0), current(), previous(), m_texture_front(), Player(pos) { } diff --git a/SQCSim2021/remoteplayer.h b/SQCSim2021/remoteplayer.h index fcd5626..238360b 100644 --- a/SQCSim2021/remoteplayer.h +++ b/SQCSim2021/remoteplayer.h @@ -14,8 +14,8 @@ class RemotePlayer : public Player { public: enum Anim: uint8_t { STILL = 1, RUNNING = 2, JUMPING = 4, SHOOTING = 8, POWERUP = 16, DEAD = 32 }; // A REVOIR VOIR DEFINE.H POUR LES ANIMES - RemotePlayer(netprot::PlayerInfo pinfo); - RemotePlayer(netprot::PlayerInfo pinfo, const Vector3f& pos); + RemotePlayer(netprot::PlayerInfo* pinfo); + RemotePlayer(netprot::PlayerInfo* pinfo, const Vector3f& pos); ~RemotePlayer();