Skip to content

Commit

Permalink
Increase MusicController's draw distance factor to disable pruning of…
Browse files Browse the repository at this point in the history
… large music zones
  • Loading branch information
frabert committed Sep 18, 2018
1 parent 54c13a3 commit 3cbb8d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/engine/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,15 @@ bool WorldInstance::init(const std::string& zen,
VobTypes::MusicVobInformation mus = VobTypes::asMusicVob(*this, e);
mus.musicController->initFromVobDescriptor(v);

/* Sets an increased factor to allow detection of very large
music zones. For example, Khorinis's zone would be disabled
on the standard factor.
This should not impact performance much because music controllers
are lightweight and do not draw anything (unless the debug
draw is enabled) */
mus.position->m_DrawDistanceFactor = 10;

vob = Vob::asVob(*this, e);
}
else if (v.objectClass == "oCZoneMusicDefault:oCZoneMusic:zCVob")
Expand Down

0 comments on commit 3cbb8d9

Please sign in to comment.