1067:819973864620 | 1068:283de3bd8b0e |
---|---|
70 { 0, 1, 0, 2, 0, 0, 0, 0, 2 }, | 70 { 0, 1, 0, 2, 0, 0, 0, 0, 2 }, |
71 }; | 71 }; |
72 | 72 |
73 Matrix transform = templates[renderer()->camera() % 3]; | 73 Matrix transform = templates[renderer()->camera() % 3]; |
74 | 74 |
75 for (int i = 0; i < 9; ++i) | 75 for (double& value : transform) |
76 { | 76 { |
77 if (transform[i] == 2) | 77 if (value == 2) |
78 transform[i] = scale; | 78 value = scale; |
79 else if (transform[i] == 1 and renderer()->camera() >= 3) | 79 else if (value == 1 and renderer()->camera() >= 3) |
80 transform[i] = -1; | 80 value = -1; |
81 } | 81 } |
82 | 82 |
83 return transform; | 83 return transform; |
84 } | 84 } |
85 | 85 |