Fix swapping with dragger beams (fixes #6597)

This commit is contained in:
Dennis Felsing 2023-05-23 00:40:27 +02:00
parent bf7469f327
commit bdc916faa9
2 changed files with 6 additions and 0 deletions

View file

@ -218,3 +218,8 @@ void CDragger::Snap(int SnappingClient)
GameServer()->SnapLaserObject(CSnapContext(SnappingClientVersion), GetID(),
m_Pos, m_Pos, StartTick, -1, LASERTYPE_DRAGGER, Subtype, m_Number);
}
void CDragger::SwapClients(int Client1, int Client2)
{
std::swap(m_apDraggerBeam[Client1], m_apDraggerBeam[Client2]);
}

View file

@ -40,6 +40,7 @@ public:
void Reset() override;
void Tick() override;
void Snap(int SnappingClient) override;
void SwapClients(int Client1, int Client2) override;
};
#endif // GAME_SERVER_ENTITIES_DRAGGER_H