Permalink
Browse files

Minor fixes.

Remove trailing whitespaces.

Upgrade license to GPLv3.

Add new keyboard shortcuts to README.
  • Loading branch information...
1 parent 99079e8 commit 634e7c984763e0b19261c06536c055fd072de88c @blynn committed May 15, 2008
Showing with 637 additions and 298 deletions.
  1. +623 −289 LICENSE
  2. +1 −1 Makefile
  3. +6 −1 README
  4. +1 −1 config.c
  5. +1 −1 linux/config_file.c
  6. +5 −5 main.c
View
912 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -11,7 +11,7 @@ else
CC = gcc
CFLAGS=-Wall -O2 -fomit-frame-pointer `sdl-config --cflags`
SDL_LIBS=`sdl-config --libs`
-LIBS = $(SDL_LIBS) -lSDL_ttf
+LIBS = $(SDL_LIBS) -lSDL_ttf
INSTALL = /usr/bin/install
PREFIX = /usr
endif
View
7 README
@@ -18,7 +18,12 @@ A middle click marks a square which has no effect on gameplay but may
be useful. For example, one could mark cells that are known to have the
correct orientation.
-There is one shortcut key: F2 starts a new game.
+Keys:
+
+F2 Start a new game.
+ESC Quit.
+q Quit.
+d Edit name for high scores.
Edit the ".netwalk/config" file to configure the game.
View
@@ -17,7 +17,7 @@ static void parse_option(config_ptr config, char *s1, char *s2)
}
}
-static int is_whitespace(char c)
+static int is_whitespace(char c)
{
if (strchr(" \t\r\n", c)) return -1;
return 0;
View
@@ -19,7 +19,7 @@ FILE *config_get_fp()
fprintf(stderr, "$HOME is not set\n");
exit(1);
}
-
+
netwalk_dir = malloc(strlen(home_dir) + 100);
config_file = malloc(strlen(home_dir) + 100);
View
10 main.c
@@ -195,9 +195,9 @@ label_t l_time;
menubar_t menu;
menuitem_ptr openedmenu;
window_ptr modalwindow;
-window_t about_window;
-window_t hs_window;
-window_t enter_name_window;
+window_t about_window;
+window_t hs_window;
+window_t enter_name_window;
label_t l_about1;
label_t l_about2;
button_t b_about1;
@@ -586,7 +586,7 @@ void set_video(int w, int h)
screen = SDL_SetVideoMode(w, h, 0, flags);
init_ctable(screen->format);
-
+
if (!screen) {
fprintf(stderr, "Can't set video mode: %s\n", SDL_GetError());
exit(1);
@@ -1119,7 +1119,7 @@ void reset_time()
void update_time()
{
static char s[80];
-
+
ms_count += tick - tick_old;
while (ms_count >= 1000) {
ms_count -= 1000;

0 comments on commit 634e7c9

Please sign in to comment.