something working ?

This commit is contained in:
Sam Gateau 2015-07-02 18:12:03 -07:00
parent 0c55130548
commit 76ca093e05

View file

@ -176,7 +176,7 @@ void makeEntityItemStatusGetters(RenderableModelEntityItem* entity, render::Item
statusGetters.push_back([entity] () -> render::Item::Status::Value {
quint64 delta = usecTimestampNow() - entity->getLastBroadcast();
float ndelta = (delta / (0.4f * USECS_PER_SECOND));
return render::Item::Status::Value(1.0f - ndelta, (ndelta > 1.0f ? 0.01f : 0.5f));
return render::Item::Status::Value(1.0f - ndelta, (ndelta > 1.0f ? 0.3f : 0.9f));
});
}