From d37c83962da7e0660d31b70a25587fd8a8ef63f2 Mon Sep 17 00:00:00 2001 From: oy Date: Tue, 10 Aug 2010 13:54:13 +0200 Subject: fixed weapon change on start bug --- src/game/client/gameclient.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/client/gameclient.cpp') diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 319cc300..acf29eb7 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -764,6 +764,11 @@ void CGameClient::OnNewSnapshot() m_Snap.m_pLocalPrevCharacter = &c->m_Prev; m_LocalCharacterPos = vec2(m_Snap.m_pLocalCharacter->m_X, m_Snap.m_pLocalCharacter->m_Y); } + else if(Client()->SnapFindItem(IClient::SNAP_PREV, NETOBJTYPE_CHARACTER, m_Snap.m_LocalCid)) + { + // player died + m_pControls->OnPlayerDeath(); + } } else m_Snap.m_Spectate = true; -- cgit 1.4.1