Skip to content

Commit

Permalink
UPBGE: Fix lod hysteresis override not divided by 100.
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame committed Jul 17, 2016
1 parent 1fb0119 commit 1fbee7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gameengine/Ketsji/KX_LodManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ float KX_LodManager::GetHysteresis(KX_Scene *scene, unsigned short level)
float hysteresis = 0.0f;
// if exists, LoD level hysteresis will override scene hysteresis
if (lodnext->GetFlag() & KX_LodLevel::USE_HYSTERESIS) {
hysteresis = lodnext->GetHysteresis();
hysteresis = lodnext->GetHysteresis() / 100.0f;
}
else {
hysteresis = scene->GetLodHysteresisValue() / 100.0f;
Expand Down

0 comments on commit 1fbee7c

Please sign in to comment.