From c4738b11b1afcb4e9374bbeb8c191deb7e1b02bd Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 5 Apr 2015 00:09:05 +0200 Subject: [PATCH] Identify unknown float in NiGravity --- components/nif/controlled.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/nif/controlled.cpp b/components/nif/controlled.cpp index 9db0c4a6f..bf391d388 100644 --- a/components/nif/controlled.cpp +++ b/components/nif/controlled.cpp @@ -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();