mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-27 02:01:16 +00:00
compat mode
This commit is contained in:
parent
a78896a3f1
commit
4c519ac185
@ -541,7 +541,12 @@ void LegoAnimPresenter::PutFrame()
|
|||||||
|
|
||||||
up = und;
|
up = und;
|
||||||
|
|
||||||
|
#ifdef COMPAT_MODE
|
||||||
|
Mx3DPointFloat location = m_currentWorld->GetCamera()->GetWorldLocation();
|
||||||
|
((Vector3&) up).Sub(&location);
|
||||||
|
#else
|
||||||
((Vector3&) up).Sub(&m_currentWorld->GetCamera()->GetWorldLocation());
|
((Vector3&) up).Sub(&m_currentWorld->GetCamera()->GetWorldLocation());
|
||||||
|
#endif
|
||||||
((Vector3&) dir).Div(dirsqr);
|
((Vector3&) dir).Div(dirsqr);
|
||||||
pos.EqualsCross(&dir, &up);
|
pos.EqualsCross(&dir, &up);
|
||||||
pos.Unitize();
|
pos.Unitize();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user