chiark / gitweb /
Expunge old CVS cruft.
authormdw <mdw>
Sat, 11 Sep 2004 18:14:04 +0000 (18:14 +0000)
committermdw <mdw>
Sat, 11 Sep 2004 18:14:04 +0000 (18:14 +0000)
12 files changed:
.cvsignore [deleted file]
Makefile.am
acconfig.h
cell.c
config.h
configure.in
game.c
level.c
ui-curses.c
undo.c
xor.c
xor.h

diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644 (file)
index 06bba5e..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-.deps config.* stamp-h* xor
-configure aclocal.m4
-Makefile Makefile.in
index 1e0b37b79cfd37ef579a061446b274c7239e0ccd..c1857585edbcf86583c7840b7e9aaa26898a5376 100644 (file)
@@ -1,6 +1,6 @@
 ## -*-makefile-*-
 ##
-## $Id: Makefile.am,v 1.1 2003/12/12 10:55:30 mdw Exp $
+## $Id$
 ##
 ## Makefile
 ##
 ## along with XOR; if not, write to the Free Software Foundation,
 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.1  2003/12/12 10:55:30  mdw
-## Initial checkin.  Not there yet.
-##
-
 AUTOMAKE_OPTIONS = foreign
 
 bin_PROGRAMS = xor
index 6c9490044b8ff947dcf403ada9c09b6e22a438c3..90b82c35e33610ec33a0c362220b102f4730c493 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: acconfig.h,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
  *
  * Configuration header for XOR
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: acconfig.h,v $
- * Revision 1.1  2003/12/12 10:55:30  mdw
- * Initial checkin.  Not there yet.
- *
- */
-
 #ifndef ACCONFIG_H
 #define ACCONFIG_H
 
diff --git a/cell.c b/cell.c
index a9e87b7e266e2c85174fbdcb11bacaca3898f926..e60232af3ceb70d724fce24d84382749be66d2a5 100644 (file)
--- a/cell.c
+++ b/cell.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: cell.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
  *
  * Cell attributes and behaviour
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: cell.c,v $
- * Revision 1.1  2003/12/12 10:55:30  mdw
- * Initial checkin.  Not there yet.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "xor.h"
index ba1e5791c8372e6a2a624396673d7aed1c1a1433..28568e72a57d18390a1ad0d560eb0ca28b5de9c1 100644 (file)
--- a/config.h
+++ b/config.h
@@ -2,7 +2,7 @@
 /* config.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
 /* -*-c-*-
  *
- * $Id: config.h,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
  *
  * Configuration header for XOR
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: config.h,v $
- * Revision 1.1  2003/12/12 10:55:30  mdw
- * Initial checkin.  Not there yet.
- *
- */
-
 #ifndef ACCONFIG_H
 #define ACCONFIG_H
 
index 51a0d1680c0acf39b585c35a07f7d937e3e9704f..5fd220a53b8cb60e832c9ba2c10ec1238d987af3 100644 (file)
@@ -1,6 +1,6 @@
 dnl -*-fundamental-*-
 dnl
-dnl $Id: configure.in,v 1.1 2003/12/12 10:55:30 mdw Exp $
+dnl $Id$
 dnl
 dnl Configuration script
 dnl
@@ -25,13 +25,6 @@ dnl You should have received a copy of the GNU General Public License
 dnl along with XOR; if not, write to the Free Software Foundation,
 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-dnl ----- Revision history --------------------------------------------------
-dnl
-dnl $Log: configure.in,v $
-dnl Revision 1.1  2003/12/12 10:55:30  mdw
-dnl Initial checkin.  Not there yet.
-dnl
-
 AC_INIT(xor.c)
 AM_INIT_AUTOMAKE(xor, 1.0.0)
 AM_CONFIG_HEADER(config.h)
diff --git a/game.c b/game.c
index 937969ec48e5aa20e5cfabe5491a56d5ce5294ae..e0cbe6bb3357aa49ddec5e4d8d805e044f6a0205 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);
diff --git a/level.c b/level.c
index f2e79224fff8f4bf8e60ca0c89bc9290340b7252..e41bb9f2ece72da8bc12f4ae4bc1f8d8cdad5a54 100644 (file)
--- a/level.c
+++ b/level.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: level.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
  *
  * Level I/O and handling
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: level.c,v $
- * Revision 1.1  2003/12/12 10:55:30  mdw
- * Initial checkin.  Not there yet.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "xor.h"
index 02e09b3a9a991537c80ecbdc39576b5ce4969d38..3951093cf97285bc0e0227c5d54366e015eb6cda 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: ui-curses.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
  *
  * Curses user interface
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: ui-curses.c,v $
- * Revision 1.1  2003/12/12 10:55:30  mdw
- * Initial checkin.  Not there yet.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "xor.h"
diff --git a/undo.c b/undo.c
index 3186523758ec26e4d62360e8db2d1f773bcca8e4..ecbd5dd942c70811ae0d72a092aa61adb9ef4ef9 100644 (file)
--- a/undo.c
+++ b/undo.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: undo.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
  *
  * Management of undo records
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: undo.c,v $
- * Revision 1.1  2003/12/12 10:55:30  mdw
- * Initial checkin.  Not there yet.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "xor.h"
@@ -194,6 +186,7 @@ static int do_undo(game_state *g, undo_move **m, undo_move **mm)
        a->u.c.y = g->p->y;
        g->p->x = x;
        g->p->y = y;
+       ui_track(g->p->u, x, y);
        break;
       case A_LIVE:
        a->u.p->f |= PF_DEAD;
diff --git a/xor.c b/xor.c
index 971feeb1fb81ef4fd520d638687e7aa34cfe3f31..54c0523540a6317b1188a2bdb04376bcf388b30c 100644 (file)
--- a/xor.c
+++ b/xor.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: xor.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
  *
  * Main program
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: xor.c,v $
- * Revision 1.1  2003/12/12 10:55:30  mdw
- * Initial checkin.  Not there yet.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "xor.h"
diff --git a/xor.h b/xor.h
index ece7a74413f8604f7dbd23965a4f7f448ba98ce9..e9edc83ffde8567068bc78aa3e8525c89b50d789 100644 (file)
--- a/xor.h
+++ b/xor.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: xor.h,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
  *
  * Main header for XOR
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: xor.h,v $
- * Revision 1.1  2003/12/12 10:55:30  mdw
- * Initial checkin.  Not there yet.
- *
- */
-
 #ifndef XOR_H
 #define XOR_H