Skip to content

Commit

Permalink
fix minimap zoom position
Browse files Browse the repository at this point in the history
  • Loading branch information
fallahn committed Aug 23, 2024
1 parent ebdf2c3 commit 4bcdf26
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crogine.sln
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ Global
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release|Any CPU.ActiveCfg = Release|Win32
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release|ARM.ActiveCfg = Release|Win32
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release|ARM64.ActiveCfg = Release|Win32
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release|x64.ActiveCfg = Release|x64
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release|x64.Build.0 = Release|x64
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release|x64.ActiveCfg = ReleaseGNS|x64
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release|x64.Build.0 = ReleaseGNS|x64
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release|x86.ActiveCfg = Release|Win32
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release|x86.Build.0 = Release|Win32
{B1559428-CDF8-4797-8766-0EA62BDD6D1B}.Release-asan|Any CPU.ActiveCfg = Release-asan|Win32
Expand Down
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 7113
#define BUILDNUMBER_STR "7113"
#define BUILDNUMBER 7114
#define BUILDNUMBER_STR "7114"

#endif /* BUILD_NUMBER_H_ */
4 changes: 2 additions & 2 deletions samples/golf/src/golf/GameConsts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ static inline std::int32_t courseOfTheMonth()
static inline float getWindMultiplier(float ballHeight, float distanceToPin)
{
static constexpr float MinWind = 10.f;
static constexpr float MaxWind = 30.f;
static constexpr float MaxWind = 32.f;

static constexpr float MinHeight = 24.f;// 40.f;
static constexpr float MinHeight = 20.f;// 40.f;
static constexpr float MaxHeight = 30.f;// 50.f;
const float HeightMultiplier = std::clamp((ballHeight - MinHeight) / (MaxHeight / MinHeight), 0.f, 1.f);

Expand Down
2 changes: 1 addition & 1 deletion samples/golf/src/golf/GolfStateUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ void GolfState::buildUI()
};

//these are const so calc them once here and capture them
glm::vec2 mapOffset = glm::vec2(MiniMapSize.y / MapSizeMultiplier, (MiniMapSize.x - 32.f) / MapSizeMultiplier) * glm::vec2(MapSizeRatio.y, MapSizeRatio.x);
glm::vec2 mapOffset = glm::vec2(MapSize.y / MapSizeMultiplier, (MapSize.x/* - 32.f*/) / MapSizeMultiplier) * glm::vec2(MapSizeRatio.y, MapSizeRatio.x);
const float l = glm::length(mapOffset);
mapOffset = glm::normalize(mapOffset);

Expand Down

0 comments on commit 4bcdf26

Please sign in to comment.