1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-02 08:26:40 +00:00

Merge branch 'finitehit' into 'master'

Require finite values in Actor._onHit

See merge request OpenMW/openmw!4965
This commit is contained in:
jvoisin 2025-10-28 17:06:05 +00:00
commit 25b2a8c82f

View file

@ -4,6 +4,7 @@
#include <components/detournavigator/agentbounds.hpp>
#include <components/lua/luastate.hpp>
#include <components/misc/finitevalues.hpp>
#include <components/settings/values.hpp>
#include "apps/openmw/mwbase/environment.hpp"
@ -427,7 +428,7 @@ namespace MWLua
{
for (auto& [key, value] : damageLua.value())
{
damageCpp[key.as<std::string>()] = value.as<float>();
damageCpp[key.as<std::string>()] = value.as<Misc::FiniteFloat>();
}
}
std::string sourceTypeStr = options.get_or<std::string>("sourceType", "unspecified");