gcc does not like the promotion from float to double in std::max...

removeExposedPackKey
sigonasr2 5 months ago
parent 0eb28bd029
commit c6c3e5cf72
  1. 2
      Adventures in Lestoria/Hawk.cpp
  2. 2
      Adventures in Lestoria/Version.h
  3. BIN
      x64/Release/Adventures in Lestoria.exe

@ -60,7 +60,7 @@ void Monster::STRATEGY::HAWK(Monster&m,float fElapsedTime,std::string strategy){
};
#pragma region Flying Hover Effect
m.SetZ(std::max(m.F(A::FLYING_HEIGHT)+ConfigFloat("Flight Oscillation Amount")*sin((PI*m.TimeSpentAlive())/1.5f),0.f));
m.SetZ(std::max(float(m.F(A::FLYING_HEIGHT)+ConfigFloat("Flight Oscillation Amount")*sin((PI*m.TimeSpentAlive())/1.5f)),0.f));
#pragma endregion
switch(m.phase){

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_PATCH 3
#define VERSION_BUILD 9666
#define VERSION_BUILD 9667
#define stringify(a) stringify_(a)
#define stringify_(a) #a

Loading…
Cancel
Save