fixed web ship types boxes / local boxes collision and projectiles

This commit is contained in:
Vlad committed 2026-03-03 19:17:07 +06:00
1 parent 167c04b107
commit 3879eb1d75
4 files changed
+45 -11

No files matched your search

+8 -2
View File
@@ -174,6 +174,12 @@ namespace ZL
std::cerr << "Sent JOIN: " << joinMsg << std::endl;
}
space.boxCoordsArr.clear();
space.boxRenderArr.clear();
//space.boxLabels.clear();
space.boxAlive.clear();
space.serverBoxesApplied = false;
lastTickCount = 0;
spaceGameStarted = 1;
};
@@ -440,12 +446,12 @@ namespace ZL
render();
if (networkClient) {
#ifndef NETWORK
//#ifndef NETWORK
auto localClient = dynamic_cast<ZL::LocalClient*>(networkClient.get());
if (localClient) {
localClient->setLocalPlayerState(Environment::shipState);
}
#endif
//#endif
networkClient->Poll();
}
mainThreadHandler.processMainThreadTasks();