Skip to content

Commit ad83742

Browse files
committed
Merge branch 'develop'
2 parents f8b02b3 + b8fd898 commit ad83742

File tree

19 files changed

+110
-34
lines changed

19 files changed

+110
-34
lines changed

.github/DISCUSSION_TEMPLATE/bug-reports.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ body:
7373
label: Version
7474
description: Which version of the game did the bug happen in? You can see the current version number in the bottom left corner of your screen in the main menu.
7575
options:
76-
- v1.9.7.0 (Summer Update 2025)
76+
- v1.9.8.0 (Summer Update Hotfix 1)
7777
- Other
7878
validations:
7979
required: true

Barotrauma/BarotraumaClient/ClientSource/GameMain.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,10 @@ protected override void LoadContent()
461461

462462
Eos.EosAccount.LoginPlatformSpecific();
463463

464-
initialLoadingThread = new Thread(Load);
464+
initialLoadingThread = new Thread(Load)
465+
{
466+
Name = "Load"
467+
};
465468
initialLoadingThread.Start();
466469
}
467470

Barotrauma/BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ public void UpdateSounds()
265265
float gainDiff = targetGain - loopingSoundChannel.Gain;
266266
loopingSoundChannel.Gain += Math.Abs(gainDiff) < 0.1f ? gainDiff : Math.Sign(gainDiff) * 0.1f;
267267
loopingSoundChannel.Position = new Vector3(item.WorldPosition, 0.0f);
268+
loopingSound.RoundSound.LastStreamSeekPos = loopingSoundChannel.StreamSeekPos;
268269
}
269270
for (int i = 0; i < playingOneshotSoundChannels.Count; i++)
270271
{
@@ -409,6 +410,10 @@ private void PlaySound(ItemSound itemSound, Vector2 position)
409410
loopingSoundChannel.Near = loopingSound.Range * 0.4f;
410411
loopingSoundChannel.Far = loopingSound.Range;
411412
}
413+
if (loopingSound.RoundSound.Stream)
414+
{
415+
loopingSoundChannel.StreamSeekPos = loopingSound.RoundSound.LastStreamSeekPos;
416+
}
412417
}
413418
}
414419
else

Barotrauma/BarotraumaClient/ClientSource/Map/RoundSound.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class RoundSound
1616
public readonly bool Stream;
1717
public readonly bool IgnoreMuffling;
1818

19+
public int LastStreamSeekPos;
20+
1921
public readonly bool MuteBackgroundMusic;
2022

2123
public readonly string? Filename;

Barotrauma/BarotraumaClient/ClientSource/StatusEffects/StatusEffect.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ partial void ApplyProjSpecific(float deltaTime, Entity entity, IReadOnlyList<ISe
152152

153153
private bool ignoreMuffling;
154154

155+
private RoundSound lastPlayingSound;
156+
155157
private void PlaySound(Entity entity, Hull hull, Vector2 worldPosition)
156158
{
157159
if (sounds.Count == 0) { return; }
@@ -204,6 +206,7 @@ private void PlaySound(Entity entity, Hull hull, Vector2 worldPosition)
204206
else
205207
{
206208
soundChannel.Position = new Vector3(worldPosition, 0.0f);
209+
if (lastPlayingSound != null && lastPlayingSound.Stream) { lastPlayingSound.LastStreamSeekPos = soundChannel.StreamSeekPos; }
207210
}
208211

209212
KeepLoopingSoundAlive(soundChannel);
@@ -248,6 +251,11 @@ void PlaySound(RoundSound selectedSound)
248251
ignoreMuffling = selectedSound.IgnoreMuffling;
249252
if (soundChannel != null)
250253
{
254+
if (soundChannel.IsStream && lastPlayingSound == selectedSound)
255+
{
256+
soundChannel.StreamSeekPos = lastPlayingSound.LastStreamSeekPos;
257+
}
258+
lastPlayingSound = selectedSound;
251259
soundChannel.Looping = loopSound;
252260
KeepLoopingSoundAlive(soundChannel);
253261
}

Barotrauma/BarotraumaClient/LinuxClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RootNamespace>Barotrauma</RootNamespace>
77
<Authors>FakeFish, Undertow Games</Authors>
88
<Product>Barotrauma</Product>
9-
<Version>1.9.7.0</Version>
9+
<Version>1.9.8.0</Version>
1010
<Copyright>Copyright © FakeFish 2018-2024</Copyright>
1111
<Platforms>AnyCPU;x64</Platforms>
1212
<AssemblyName>Barotrauma</AssemblyName>

Barotrauma/BarotraumaClient/MacClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RootNamespace>Barotrauma</RootNamespace>
77
<Authors>FakeFish, Undertow Games</Authors>
88
<Product>Barotrauma</Product>
9-
<Version>1.9.7.0</Version>
9+
<Version>1.9.8.0</Version>
1010
<Copyright>Copyright © FakeFish 2018-2024</Copyright>
1111
<Platforms>AnyCPU;x64</Platforms>
1212
<AssemblyName>Barotrauma</AssemblyName>

Barotrauma/BarotraumaClient/WindowsClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RootNamespace>Barotrauma</RootNamespace>
77
<Authors>FakeFish, Undertow Games</Authors>
88
<Product>Barotrauma</Product>
9-
<Version>1.9.7.0</Version>
9+
<Version>1.9.8.0</Version>
1010
<Copyright>Copyright © FakeFish 2018-2024</Copyright>
1111
<Platforms>AnyCPU;x64</Platforms>
1212
<AssemblyName>Barotrauma</AssemblyName>

Barotrauma/BarotraumaServer/LinuxServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RootNamespace>Barotrauma</RootNamespace>
77
<Authors>FakeFish, Undertow Games</Authors>
88
<Product>Barotrauma Dedicated Server</Product>
9-
<Version>1.9.7.0</Version>
9+
<Version>1.9.8.0</Version>
1010
<Copyright>Copyright © FakeFish 2018-2023</Copyright>
1111
<Platforms>AnyCPU;x64</Platforms>
1212
<AssemblyName>DedicatedServer</AssemblyName>

Barotrauma/BarotraumaServer/MacServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RootNamespace>Barotrauma</RootNamespace>
77
<Authors>FakeFish, Undertow Games</Authors>
88
<Product>Barotrauma Dedicated Server</Product>
9-
<Version>1.9.7.0</Version>
9+
<Version>1.9.8.0</Version>
1010
<Copyright>Copyright © FakeFish 2018-2023</Copyright>
1111
<Platforms>AnyCPU;x64</Platforms>
1212
<AssemblyName>DedicatedServer</AssemblyName>

0 commit comments

Comments
 (0)