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

This commit is contained in:
sigonasr2 2024-06-18 15:43:15 -05:00
parent 0eb28bd029
commit c6c3e5cf72
3 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ void Monster::STRATEGY::HAWK(Monster&m,float fElapsedTime,std::string strategy){
}; };
#pragma region Flying Hover Effect #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 #pragma endregion
switch(m.phase){ switch(m.phase){

View File

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