Player cannot see their own sprint effect.
This commit is contained in:
@@ -34,7 +34,7 @@ void PlayerMovementSystem::Update(double dt)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (auto cSprint : *pool) {
|
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.
|
// Spawn one afterimage for each player that sprints.
|
||||||
EntityWrapper player(m_World, cSprint.EntityID);
|
EntityWrapper player(m_World, cSprint.EntityID);
|
||||||
auto entityFile = ResourceManager::Load<EntityFile>("Schema/Entities/SprintEffect.xml");
|
auto entityFile = ResourceManager::Load<EntityFile>("Schema/Entities/SprintEffect.xml");
|
||||||
|
|||||||
Reference in New Issue
Block a user