Fix color constants

No idea how I replaced yellow with brown, but somehow I messed that
up. Whatever, I wrote that code a month and a half ago lol
This commit is contained in:
Alex Bethel 2022-03-03 11:58:04 -07:00
parent c6868a7a01
commit 677c101505
2 changed files with 9 additions and 9 deletions

View file

@ -44,14 +44,14 @@ pub fn quit() -> ! {
/// The colors on a terminal. /// The colors on a terminal.
#[allow(unused)] #[allow(unused)]
pub enum Color { pub enum Color {
Black = 0, Black = pancurses::COLOR_BLACK as _,
Red = 1, Red = pancurses::COLOR_RED as _,
Green = 2, Green = pancurses::COLOR_GREEN as _,
Brown = 3, Yellow = pancurses::COLOR_YELLOW as _,
Blue = 4, Blue = pancurses::COLOR_BLUE as _,
Magenta = 5, Magenta = pancurses::COLOR_MAGENTA as _,
Cyan = 6, Cyan = pancurses::COLOR_CYAN as _,
White = 7, White = pancurses::COLOR_WHITE as _,
} }
#[derive(Error, Debug)] #[derive(Error, Debug)]

View file

@ -106,7 +106,7 @@ impl DungeonLevel {
win.mv(y as _, 0); win.mv(y as _, 0);
for x in 0..LEVEL_SIZE.0 { for x in 0..LEVEL_SIZE.0 {
if (x + y) % 2 == 0 { if (x + y) % 2 == 0 {
set_color(win, Color::Cyan); set_color(win, Color::Yellow);
} else { } else {
set_color(win, Color::Red); set_color(win, Color::Red);
} }