Fix typos in source code using codespell

From https://github.com/lucasdemarchi/codespell
This commit is contained in:
Rémi Verschelde
2017-03-24 21:45:31 +01:00
parent c103f32ea3
commit debeee56f7
98 changed files with 180 additions and 182 deletions

View File

@@ -2447,7 +2447,7 @@ void VisualServerScene::_setup_gi_probe(Instance *p_instance) {
for (int y = 0; y < 4; y++) {
for (int x = 0; x < 4; x++) {
//substract minimum
//subtract minimum
uint32_t a = uint32_t(alpha_block[x][y]) - min_alpha;
//convert range to 3 bits
a = int((a * 7.0 / (max_alpha - min_alpha)) + 0.5);
@@ -2923,7 +2923,7 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) {
colors[j].z = (local_data[b.sources[j]].energy[2] / float(probe_data->dynamic.bake_dynamic_range)) / 1024.0;
}
//super quick and dirty compression
//find 2 most futher apart
//find 2 most further apart
float distance = 0;
Vector3 from, to;
@@ -3001,7 +3001,7 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) {
}
}
//by default, 1 is black, otherwise it will be overriden by source
//by default, 1 is black, otherwise it will be overridden by source
uint32_t index_block[16] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };