diff options
Diffstat (limited to 'src/game/server/entities/flag.cpp')
| -rw-r--r-- | src/game/server/entities/flag.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/game/server/entities/flag.cpp b/src/game/server/entities/flag.cpp index 13109b07..5ac3de47 100644 --- a/src/game/server/entities/flag.cpp +++ b/src/game/server/entities/flag.cpp @@ -25,6 +25,9 @@ void CFlag::Reset() void CFlag::Snap(int SnappingClient) { + if(NetworkClipped(SnappingClient)) + return; + CNetObj_Flag *pFlag = (CNetObj_Flag *)Server()->SnapNewItem(NETOBJTYPE_FLAG, m_Team, sizeof(CNetObj_Flag)); if(!pFlag) return; @@ -32,10 +35,4 @@ void CFlag::Snap(int SnappingClient) pFlag->m_X = (int)m_Pos.x; pFlag->m_Y = (int)m_Pos.y; pFlag->m_Team = m_Team; - pFlag->m_CarriedBy = -1; - - if(m_AtStand) - pFlag->m_CarriedBy = -2; - else if(m_pCarryingCharacter && m_pCarryingCharacter->GetPlayer()) - pFlag->m_CarriedBy = m_pCarryingCharacter->GetPlayer()->GetCID(); } |