Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
noncombatant committed May 15, 2023
1 parent 494cae8 commit 5150d26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CFLAGS = -Weverything -Werror -O3 -std=c2x -Wno-padded -Wno-poison-system-direct
LDFLAGS = -lncurses

play: robotfindskitten
-./robotfindskitten -n3
-./robotfindskitten

clean:
rm robotfindskitten
9 changes: 3 additions & 6 deletions robotfindskitten.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,8 @@ static void InitializeGame(size_t non_kitten_count) {
assert(StringsEqual("", Messages[Robot]));
assert(StringsEqual("", Messages[Kitten]));

g_non_kitten_count = Bogus + non_kitten_count;

Shuffle(Icons, COUNT(Icons));

g_non_kitten_count = Bogus + non_kitten_count;
g_border_color = GetRandomColor();

// Set up (n)curses.
Expand Down Expand Up @@ -476,9 +474,8 @@ static void MainLoop(void) {
}

// It's the edge of the world as we know it...
if ((y < HeaderSize + FrameThickness) ||
(y >= LINES - FrameThickness) || (x < FrameThickness) ||
(x >= COLS - FrameThickness)) {
if ((y < HeaderSize + FrameThickness) || (y >= LINES - FrameThickness) ||
(x < FrameThickness) || (x >= COLS - FrameThickness)) {
continue;
}

Expand Down

0 comments on commit 5150d26

Please sign in to comment.