Player cannot see their own sprint effect.

This commit is contained in:
Jocke
2016-03-03 22:09:51 +01:00
parent 984b8ad3e9
commit ae13a2db6b
+1 -1
View File
@@ -34,7 +34,7 @@ void PlayerMovementSystem::Update(double dt)
return;
}
for (auto cSprint : *pool) {
if (/*cSprint.EntityID != LocalPlayer.ID && */(bool)cSprint["Active"]) {
if (cSprint.EntityID != LocalPlayer.ID && (bool)cSprint["Active"]) {
// Spawn one afterimage for each player that sprints.
EntityWrapper player(m_World, cSprint.EntityID);
auto entityFile = ResourceManager::Load<EntityFile>("Schema/Entities/SprintEffect.xml");