infra: Clean up project setup
[xor] / game.c
diff --git a/game.c b/game.c
index 937969e..e0cbe6b 100644 (file)
--- a/game.c
+++ b/game.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: game.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
  *
  * Main game logic
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: game.c,v $
- * Revision 1.1  2003/12/12 10:55:30  mdw
- * Initial checkin.  Not there yet.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "xor.h"
@@ -123,7 +115,6 @@ void game_switchto(game_state *g, game_player *p)
   g->ptail = p->prev;
   p->prev = 0;
   g->p = p;
-  g->l->v++;
   CELLSET(g->l, g->p->x, g->p->y, C_PLAYER);
   ui_switch(g->p->u);
 }
@@ -138,6 +129,7 @@ int game_switch(game_state *g)
     ;
   if (!p) return (0);
   if (g->l->v >= g->l->vtot) return (1);
+  g->l->v++;
   undo_switch(g);
   game_switchto(g, p);
   return (1);