Permalink
Browse files

Mon May 2 15:23:30 BST 2005 Stig Brautaset <stig@brautaset.org>

  * minor cleanup

    M ./src/gmoth.c -5 +4
  • Loading branch information...
1 parent d908661 commit 1a738df375d1ae8227b30a089580f76af80a60e2 stig committed May 9, 2005
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/gmoth.c
View
@@ -184,10 +184,12 @@ static void gameover(struct reversi_state *board)
static void mydisplay(void)
{
- int ply;
- struct reversi_state *board = ggtl_peek_state(game);
int width = glutGet(GLUT_WINDOW_WIDTH);
int height = glutGet(GLUT_WINDOW_HEIGHT);
+ struct reversi_state *board = ggtl_peek_state(game);
+
+ if (ggtl_game_over(game))
+ gameover(board);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
@@ -196,9 +198,6 @@ static void mydisplay(void)
glClear(GL_COLOR_BUFFER_BIT);
gluOrtho2D(0.0, (GLdouble)width, 0.0, (GLdouble)height);
- if (ggtl_game_over(game))
- gameover(board);
-
drawgrid(width, height);
drawstate(board, width, height);

0 comments on commit 1a738df

Please sign in to comment.