mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
silenced an uninitialized value warning
This commit is contained in:
parent
2c7ab21151
commit
90cfc59c88
@ -43,7 +43,7 @@ color_t rainbow_color(hyperpoint h) {
|
|||||||
|
|
||||||
hue *= 6;
|
hue *= 6;
|
||||||
|
|
||||||
color_t res;
|
color_t res = 0;
|
||||||
|
|
||||||
if(hue<1) res = gradient(0xFF0000, 0xFFFF00, 0, hue, 1);
|
if(hue<1) res = gradient(0xFF0000, 0xFFFF00, 0, hue, 1);
|
||||||
else if(hue<2) res = gradient(0x00FF00, 0xFFFF00, 2, hue, 1);
|
else if(hue<2) res = gradient(0x00FF00, 0xFFFF00, 2, hue, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user