|
|
|
@ -67,9 +67,10 @@ struct colour_pallete get_pallete (int seed) {
@@ -67,9 +67,10 @@ struct colour_pallete get_pallete (int seed) {
|
|
|
|
|
if (high_contrast_mode)
|
|
|
|
|
return get_pallete_high_contrast(); |
|
|
|
|
|
|
|
|
|
int red = get_rand(0) % 255; |
|
|
|
|
int blue = get_rand(0) % 255; |
|
|
|
|
int green = get_rand(0) % 255; |
|
|
|
|
int n = seed; |
|
|
|
|
int red = get_rand(&n) % 255; |
|
|
|
|
int blue = get_rand(&n) % 255; |
|
|
|
|
int green = get_rand(&n) % 255; |
|
|
|
|
|
|
|
|
|
base.r = red; |
|
|
|
|
base.g = green; |
|
|
|
@ -134,7 +135,8 @@ struct environment get_scene_at(Vect coordinate, int seed) {
@@ -134,7 +135,8 @@ struct environment get_scene_at(Vect coordinate, int seed) {
|
|
|
|
|
bit.y = 100 * seed; |
|
|
|
|
Vect pos; |
|
|
|
|
|
|
|
|
|
get_rand(seed); |
|
|
|
|
int n = seed; |
|
|
|
|
get_rand(&n); |
|
|
|
|
|
|
|
|
|
Vect node; |
|
|
|
|
node.y = 0; |
|
|
|
@ -144,9 +146,9 @@ struct environment get_scene_at(Vect coordinate, int seed) {
@@ -144,9 +146,9 @@ struct environment get_scene_at(Vect coordinate, int seed) {
|
|
|
|
|
bit.y = seed; |
|
|
|
|
node.x = bit.x; |
|
|
|
|
|
|
|
|
|
int r1 = 1.5*(get_rand(0) % 500) - (get_rand(0) % 100);
|
|
|
|
|
int r2 = 1.5*(get_rand(0) % 200) - (get_rand(0) % 200); |
|
|
|
|
int r3 = (get_rand(0) % 100) - (get_rand(0) % 500); |
|
|
|
|
int r1 = 1.5*(get_rand(&n) % 500) - (get_rand(&n) % 100);
|
|
|
|
|
int r2 = 1.5*(get_rand(&n) % 200) - (get_rand(&n) % 200); |
|
|
|
|
int r3 = (get_rand(&n) % 100) - (get_rand(&n) % 500); |
|
|
|
|
int r4 = 50; |
|
|
|
|
|
|
|
|
|
int r[4] = {r1, r2, r3, r4}; |
|
|
|
|