mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix swapping with dragger beams (fixes #6597)
This commit is contained in:
parent
bf7469f327
commit
bdc916faa9
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue