This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
matrix: p_matrix tiny cleanup
undefined
Guillaume Bittoun
Sam Hocevar
<sam@hocevar.net>
10 years ago
parent
c30c60671b
commit
3279f3fe84
1 changed files
with
1 additions
and
7 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-7
src/lol/math/matrix.h
+ 1
- 7
src/lol/math/matrix.h
View File
@@ -592,13 +592,7 @@ mat_t<T, N, N> p_matrix(mat_t<T, N, N> const & m)
for (int j = 0 ; j < N ; ++j)
{
while (j < N && used[j])
++j;
if (j >= N)
break;
if (index_max == -1 || m[i][j] > m[i][index_max])
if (!used[j] && (index_max == -1 || m[i][j] > m[i][index_max]))
index_max = j;
}
Write
Preview
Loading…
Cancel
Save