fixed web ship types boxes / local boxes collision and projectiles
This commit is contained in:
1 parent
167c04b107
commit
3879eb1d75
4 files changed
+45
-11
No files matched your search
+8
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user