survivor

graphical action game for the linux terminal
git clone https://git.ce9e.org/survivor.git

commit
624409170c5b5a7eac9c772b07bd6916a8901187
parent
65ff1510e436d94fc304d5054ce62c0e9e350888
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-02-22 20:53
rename block6 to sextant

Diffstat

M src/term.rs 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/src/term.rs b/src/term.rs

@@ -33,7 +33,7 @@ mod ti {
   33    33     }
   34    34 }
   35    35 
   36    -1 fn block6(block: u32) -> char {
   -1    36 fn sextant(block: u32) -> char {
   37    37     if block == 0b000000 {
   38    38         return ' ';
   39    39     } else if block < 0b010101 {
@@ -142,7 +142,7 @@ impl Screen {
  142   142                     ti::setaf(fg);
  143   143                     prev_fg = fg;
  144   144                 }
  145    -1                 print!("{}", block6(block));
   -1   145                 print!("{}", sextant(block));
  146   146             }
  147   147             if y != self.height / 3 - 1 {
  148   148                 print!("\n");