diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-28 08:06:56 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-28 08:06:56 +0000 |
| commit | 263a39e7e55add9b48627f4bf54b753ca973596d (patch) | |
| tree | 2a8b07ee4b9801d45764c24b06d1db9de573a08f | |
| parent | cdb8433c0a5bf546ae2f4c55bad1be064d05df3b (diff) | |
| download | puzzles-263a39e7e55add9b48627f4bf54b753ca973596d.zip puzzles-263a39e7e55add9b48627f4bf54b753ca973596d.tar.gz puzzles-263a39e7e55add9b48627f4bf54b753ca973596d.tar.bz2 puzzles-263a39e7e55add9b48627f4bf54b753ca973596d.tar.xz | |
Move a rogue declaration to the top of its block.
[originally from svn r6027]
| -rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1981,6 +1981,7 @@ static char *interpret_move(game_state *state, game_ui *ui, sprintf(buf, "L%d,%d", tx, ty); return dupstr(buf); } else if (button == LEFT_BUTTON || button == RIGHT_BUTTON) { + char buf[80]; /* * The left and right buttons have no effect if clicked on a @@ -1993,7 +1994,6 @@ static char *interpret_move(game_state *state, game_ui *ui, * Otherwise, turn the tile one way or the other. Left button * turns anticlockwise; right button turns clockwise. */ - char buf[80]; sprintf(buf, "%c%d,%d", (button == LEFT_BUTTON ? 'A' : 'C'), tx, ty); return dupstr(buf); } else if (button == 'J') { |