Merge branch 'finitehit' into 'master'
Require finite values in Actor._onHit See merge request OpenMW/openmw!4965
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user