forked from teamnwah/openmw-tes3coop
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
236bfa3678
2 changed files with 2 additions and 1 deletions
|
@ -56,6 +56,7 @@ Programmers
|
|||
Jeffrey Haines (Jyby)
|
||||
Jengerer
|
||||
Jiří Kuneš (kunesj)
|
||||
Joe Wilkerson (neuralroberts)
|
||||
Joel Graff (graffy)
|
||||
John Blomberg (fstp)
|
||||
Jordan Ayers
|
||||
|
|
|
@ -1435,7 +1435,7 @@ namespace MWMechanics
|
|||
osg::Vec3f observerDir = (observer.getRefData().getBaseNode()->getAttitude() * osg::Vec3f(0,1,0));
|
||||
|
||||
float angleRadians = std::acos(observerDir * vec / (observerDir.length() * vec.length()));
|
||||
if (angleRadians < osg::DegreesToRadians(90.f))
|
||||
if (angleRadians > osg::DegreesToRadians(90.f))
|
||||
y = obsTerm * observerStats.getFatigueTerm() * fSneakNoViewMult;
|
||||
else
|
||||
y = obsTerm * observerStats.getFatigueTerm() * fSneakViewMult;
|
||||
|
|
Loading…
Reference in a new issue