1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 12:42:11 +00:00

Identify unknown float in NiGravity

This commit is contained in:
scrawl 2015-04-05 00:09:05 +02:00
parent 1eafecd30c
commit c4738b11b1

View File

@ -54,7 +54,10 @@ namespace Nif
{
Controlled::read(nif);
/*unknown*/nif->getFloat();
float decay = nif->getFloat();
if (decay != 0.f)
nif->file->warn("Unhandled gravity decay factor");
mForce = nif->getFloat();
mType = nif->getUInt();
mPosition = nif->getVector3();