aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-01-21 20:38:09 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-01-21 20:38:09 +0100
commit142a370cba076a7cf593c7a48b5414e992311a20 (patch)
treeaecab3afe3caf4d459a829397ab6fb1c1a20fafb /src/utils.cpp
parent2b1f81ba329b17a18cdd75604625076ee614f5ef (diff)
Setup xkb
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index f0849b7..1c6fac1 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -42,8 +42,9 @@ void random_scene(sphere *world) {
uint32_t world_sphere_index = 1;
- for (int a = -11; a < 11; a++) {
- for (int b = -11; b < 11; b++) {
+ int32_t spheres_count = 11;
+ for (int a = -spheres_count; a < spheres_count; a++) {
+ for (int b = -spheres_count; b < spheres_count; b++) {
auto choose_mat = randd();
point3 center(a + 0.9 * randd(), 0.2, b + 0.9 * randd());