mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-29 03:01:15 +00:00
Fix
This commit is contained in:
parent
e7bd5459be
commit
6588cf7958
@ -488,7 +488,13 @@ void TimeROI::FUN_100a9b40(Matrix4& p_matrix, LegoTime p_time)
|
||||
Mx3DPointFloat targetPosition(p_matrix[3]);
|
||||
|
||||
// TODO: Figure out how to get type right for the call
|
||||
// TODO: Fix constness of vector/matrix functions
|
||||
#ifdef COMPAT_MODE
|
||||
Vector3 worldPosition(m_local2world[3]);
|
||||
((Vector3&) targetPosition).Sub(&worldPosition);
|
||||
#else
|
||||
((Vector3&) targetPosition).Sub(&Vector3(m_local2world[3]));
|
||||
#endif
|
||||
|
||||
float division = time * 0.001;
|
||||
((Vector3&) targetPosition).Div(division);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user