Skip to content

Commit c0883c6

Browse files
committed
fix: don't queue locators while paused
1 parent 02b2a1e commit c0883c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Features/Demo/NetworkGhostPlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ void NetworkManager::Treat(sf::Packet &packet, bool udp) {
10521052
addToNetDump("recv-locator", Utils::ssprintf("%d;%.1f,%.1f,%.1f;%.1f,%.1f,%.1f", ID, position.x, position.y, position.z, normal.x, normal.y, normal.z).c_str());
10531053
if (ghost && engine->GetCurrentMapName() == ghost->currentMap) {
10541054
Scheduler::OnMainThread([=]() {
1055-
if (this->AcknowledgeGhost(ghost)) {
1055+
if (this->AcknowledgeGhost(ghost) && !engine->IsGamePaused()) {
10561056
client->ShowLocator(position, normal, ghost->color.value_or(Color(255,255,255)));
10571057
}
10581058
});

0 commit comments

Comments
 (0)