Skip to content

Commit

Permalink
update options label for Steam Deck
Browse files Browse the repository at this point in the history
tweak colour opacity
  • Loading branch information
fallahn committed Apr 27, 2024
1 parent 8e17bef commit 6fd65c3
Show file tree
Hide file tree
Showing 6 changed files with 220 additions and 214 deletions.
4 changes: 2 additions & 2 deletions samples/golf/buildnumber.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ifndef BUILD_NUMBER_H_
#define BUILD_NUMBER_H_

#define BUILDNUMBER 5448
#define BUILDNUMBER_STR "5448"
#define BUILDNUMBER 5455
#define BUILDNUMBER_STR "5455"

#endif /* BUILD_NUMBER_H_ */
6 changes: 4 additions & 2 deletions samples/golf/src/golf/GolfState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6255,7 +6255,8 @@ void GolfState::startFlyBy()

//play the transition music
if (m_sharedData.gameMode == GameMode::Tutorial
&& cro::AudioMixer::getVolume(MixerChannel::UserMusic) < 0.01f)
&& cro::AudioMixer::getVolume(MixerChannel::UserMusic) < 0.01f
&& cro::AudioMixer::getVolume(MixerChannel::Music) != 0)
{
m_cameras[CameraID::Player].getComponent<cro::AudioEmitter>().play();
}
Expand All @@ -6279,7 +6280,8 @@ void GolfState::startFlyBy()
showScoreboard(true);
m_newHole = true;

if (cro::AudioMixer::getVolume(MixerChannel::UserMusic) < 0.01f)
if (cro::AudioMixer::getVolume(MixerChannel::UserMusic) < 0.01f
&& cro::AudioMixer::getVolume(MixerChannel::Music) != 0)
{
m_cameras[CameraID::Player].getComponent<cro::AudioEmitter>().play();
}
Expand Down
Loading

0 comments on commit 6fd65c3

Please sign in to comment.