File ghost.diff of Package teeworlds

--- src/game/client/components/players.cpp.orig	2016-01-24 17:14:06.694349460 +0100
+++ src/game/client/components/players.cpp	2016-01-25 19:20:52.658530861 +0100
@@ -470,20 +470,21 @@
 
 	}
 
+	vec2 GhostPosition = mix(vec2(pPrevChar->m_X, pPrevChar->m_Y), vec2(pPlayerChar->m_X, pPlayerChar->m_Y), Client()->IntraGameTick());
 	// render the "shadow" tee
 	if(pInfo.m_Local && g_Config.m_Debug)
 	{
-		vec2 GhostPosition = mix(vec2(pPrevChar->m_X, pPrevChar->m_Y), vec2(pPlayerChar->m_X, pPlayerChar->m_Y), Client()->IntraGameTick());
+
 		CTeeRenderInfo Ghost = RenderInfo;
 		Ghost.m_ColorBody.a = 0.5f;
 		Ghost.m_ColorFeet.a = 0.5f;
-		RenderTools()->RenderTee(&State, &Ghost, Player.m_Emote, Direction, GhostPosition); // render ghost
+		RenderTools()->RenderTee(&State, &Ghost, Player.m_Emote, Direction, Position); // render ghost
 	}
 
 	RenderInfo.m_Size = 64.0f; // force some settings
 	RenderInfo.m_ColorBody.a = 1.0f;
 	RenderInfo.m_ColorFeet.a = 1.0f;
-	RenderTools()->RenderTee(&State, &RenderInfo, Player.m_Emote, Direction, Position);
+	RenderTools()->RenderTee(&State, &RenderInfo, Player.m_Emote, Direction, GhostPosition);
 
 	if(Player.m_PlayerFlags&PLAYERFLAG_CHATTING)
 	{
openSUSE Build Service is sponsored by