spawning shield on server and client

This commit is contained in:
viktorljung
2016-03-14 16:02:20 +01:00
parent 18ea938b56
commit f269caafed
@@ -160,9 +160,8 @@ bool DefenderWeaponBehaviour::OnInputCommand(ComponentWrapper cWeapon, WeaponInf
} }
} }
if (IsServer) { SpawnerSystem::Spawn(attachment, attachment);
SpawnerSystem::Spawn(attachment, attachment);
}
EntityWrapper backAttachment = attachment.FirstChildByName("Back"); EntityWrapper backAttachment = attachment.FirstChildByName("Back");
if (backAttachment.Valid()) { if (backAttachment.Valid()) {