mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-14 12:11:15 +00:00
Possible improvement on Matrix4::Swap
This commit is contained in:
parent
10c7547f50
commit
eedc1c2aa7
@ -353,10 +353,14 @@ int Matrix4::Invert(Matrix4& p_mat)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1006b500
|
// FUNCTION: LEGO1 0x1006b500
|
||||||
|
// FUNCTION: BETA10 0x1005aa20
|
||||||
void Matrix4::Swap(int p_d1, int p_d2)
|
void Matrix4::Swap(int p_d1, int p_d2)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 4; i++) {
|
// TODO: Document entropy build result
|
||||||
float e = m_data[p_d1][i];
|
int i;
|
||||||
|
float e;
|
||||||
|
for (i = 0; i < 4; i++) {
|
||||||
|
e = m_data[p_d1][i];
|
||||||
m_data[p_d1][i] = m_data[p_d2][i];
|
m_data[p_d1][i] = m_data[p_d2][i];
|
||||||
m_data[p_d2][i] = e;
|
m_data[p_d2][i] = e;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user