mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +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;
|
||||
|
||||
color_t res;
|
||||
color_t res = 0;
|
||||
|
||||
if(hue<1) res = gradient(0xFF0000, 0xFFFF00, 0, hue, 1);
|
||||
else if(hue<2) res = gradient(0x00FF00, 0xFFFF00, 2, hue, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user