Skip to content

Commit 65bee0e

Browse files
authored
Don't update ShipSystemsSystem on clients (#2645)
1 parent da23ca9 commit 65bee0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/systems/shipsystemssystem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "shipsystemssystem.h"
2+
#include "multiplayer_server.h"
23
#include "components/reactor.h"
34
#include "components/beamweapon.h"
45
#include "components/missiletubes.h"
@@ -12,6 +13,7 @@
1213

1314
void ShipSystemsSystem::update(float delta)
1415
{
16+
if (!game_server) return;
1517
for(auto [entity, system] : sp::ecs::Query<Reactor>())
1618
updateSystem(system, delta, entity.hasComponent<Coolant>());
1719
for(auto [entity, system] : sp::ecs::Query<BeamWeaponSys>())

0 commit comments

Comments
 (0)