mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Cleanup
This commit is contained in:
parent
8b816dce44
commit
1738ff6010
|
@ -500,7 +500,6 @@ void CClient::SendInput()
|
||||||
CNetObj_Character Main = ((CGameClient *)GameClient())->m_Snap.m_aCharacters[m_LocalIDs[g_Config.m_ClDummy]].m_Cur;
|
CNetObj_Character Main = ((CGameClient *)GameClient())->m_Snap.m_aCharacters[m_LocalIDs[g_Config.m_ClDummy]].m_Cur;
|
||||||
CNetObj_Character Dummy = ((CGameClient *)GameClient())->m_Snap.m_aCharacters[m_LocalIDs[!g_Config.m_ClDummy]].m_Cur;
|
CNetObj_Character Dummy = ((CGameClient *)GameClient())->m_Snap.m_aCharacters[m_LocalIDs[!g_Config.m_ClDummy]].m_Cur;
|
||||||
vec2 Dir = vec2(Main.m_X - Dummy.m_X, Main.m_Y - Dummy.m_Y);
|
vec2 Dir = vec2(Main.m_X - Dummy.m_X, Main.m_Y - Dummy.m_Y);
|
||||||
DummyData.m_Direction = GetAngle(Dir);
|
|
||||||
DummyData.m_TargetX = Dir.x;
|
DummyData.m_TargetX = Dir.x;
|
||||||
DummyData.m_TargetY = Dir.y;
|
DummyData.m_TargetY = Dir.y;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue