diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-15 16:26:12 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-15 16:26:12 +1100 |
commit | 696abcca71274fbda2470f1941cb2e06b6ff8c61 (patch) | |
tree | b3ba52a56383acbd5c3fa504cff3601a081b2b2e /source/client | |
parent | 658fab846e401b956530739f9ab4dce192362027 (diff) |
fix late aimPosition
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/StarClientApplication.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index ef78dd7..3370802 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -874,6 +874,12 @@ void ClientApplication::updateRunning(float dt) { else m_player->setMoveVector(Vec2F()); + m_voice->setInput(m_input->bindHeld("opensb", "pushToTalk")); + DataStreamBuffer voiceData; + voiceData.setByteOrder(ByteOrder::LittleEndian); + //voiceData.writeBytes(VoiceBroadcastPrefix.utf8Bytes()); transmitting with SE compat for now + bool needstoSendVoice = m_voice->send(voiceData, 5000); + auto checkDisconnection = [this]() { if (!m_universeClient->isConnected()) { m_cinematicOverlay->stop(); @@ -893,11 +899,7 @@ void ClientApplication::updateRunning(float dt) { if (checkDisconnection()) return; - m_voice->setInput(m_input->bindHeld("opensb", "pushToTalk")); - DataStreamBuffer voiceData; - voiceData.setByteOrder(ByteOrder::LittleEndian); - //voiceData.writeBytes(VoiceBroadcastPrefix.utf8Bytes()); transmitting with SE compat for now - bool needstoSendVoice = m_voice->send(voiceData, 5000); + m_mainInterface->preUpdate(dt); m_universeClient->update(dt); if (checkDisconnection()) |