2000-07-03  Kari Pahula  <kari@lyseo.kotka.fi>

	* main.c: Messages in list_maps changed.

2000-07-02  Kari Pahula  <kari@lyseo.kotka.fi>

	* main.c:
	Changed game init to facilitiate map generator, added new command line
	arguments.  --player can now be used to reduce the number of players for
	loaded maps.

	* occupy.c:
	defeat_players () made callable with no player bias.  New connect_type
	member added, IGNORED, and functions changed accordingly.

	* comm.c: init_occupy () call moved to main ().

	* map.h, map.c:
	Added game save function save_map ().  Some of map initialization code
	moved to separate fuction init_map ().

	* mapgen.h, mapgen.c: New file.

2000-04-25  Kari Pahula  <kari@lyseo.kotka.fi>

	* main.c:
	Now giving a zero as the player number in player string opens a
	passive, observing X connection.

2000-04-12  Kari Pahula  <kari@lyseo.kotka.fi>

	* main.c: Help message changed.

	* comm.c, curses_if.h, curses_if.c: Added quit to curses interface.

2000-04-12  Kari Pahula  <kari@shiva.kotka.fi>

	* main.c: Help message changed.

	* comm.c, curses_if.h, curses_if.c: Added quit to curses interface.

2000-04-09  Kari Pahula  <kari@shiva.kotka.fi>

	* main.c, fill.h, fill.c:
	Created function init_fill, now allocates the stacks for the fill only
	once, instead of allocating memory on every fill.

2000-04-08  Kari Pahula  <kari@shiva.kotka.fi>

	* main.c, comm.c, occupy.h, occupy.c:
	Added function defeat_players, connection_terminated changed to call it
	to defeat players from the lost connection.

2000-04-03  Kari Pahula  <kari@shiva.kotka.fi>

	* comm.h, comm.c: New file.

	* curses_if.h, curses_if.c, main.c, occupy.c, xevent.h, xevent.c, xwin.h, xwin.c, xinit.h, xinit.c:
	Dismantled the thread system, uses now select(2).  File thread.[hc]
	removed.

1999-12-17  Kari Pahula  <kari@shiva.kotka.fi>

	* occupy.c:
	Added an extra check to make sure the default mode can't be invalid.

1999-12-02  Kari Pahula  <kari@shiva.kotka.fi>

	* wrappers.h, wrappers.c, main.c, map.h, map.c, xwin.c, xinit.c:
	Removed function alloc_err_str.

	* xinit.h, xinit.c:
	Motti now tries to create an own colormap, if unable to allocate a color.

1999-12-01  Kari Pahula  <kari@shiva.kotka.fi>

	* wrappers.c:
	Function die now uses a static storage for error messages.  Dynamic storage
	really unnecessary, since this doesn't need to be that general.

	* thread.c:
	Motti now tells about switch --curses, if unable to open display.

1999-10-19  Kari Pahula  <kari@shiva.kotka.fi>

	* main.c: Tweaked function parse_players slightly.

Mon Oct 18 23:55:35 1999  Kari Pahula  <kari@shiva>

	* main.c: Tweaked function parse_players slightly.

Sat Oct 16 17:28:55 1999  Kari Pahula  <kari@shiva>

	* xevent.c, xwin.h, xwin.c:
	Removed an optimization from draw_effects (), since it doesn't quite seem to
	work correctly.  Not big deal, calls now two unnecessary Xlib functions in
	worst case.

Fri Oct 15 09:41:37 1999  Kari Pahula  <kari@shiva>

	* main.c, map.c:
	Motti now loads optionally maps from a default directory.

Thu Oct 14 23:13:04 1999  Kari Pahula  <kari@shiva>

	* xinit.c: Changed the name of map background resource to cheat KDE.

	* main.c, thread.h, thread.c, occupy.c, xinit.h, xevent.c:
	Motti should now compile with all combinations of configurate script --with
	parameters.

	* thread.h, curses_if.h, curses_if.c, main.c:
	Curses interface enabled again after X restructuring.

Tue Oct 12 19:56:38 1999  Kari Pahula  <kari@shiva>

	* xinit.h, xinit.c, xevent.c:
	Added a half-smart mouse button action.  It does guerilla and defend actions,
	but no attack.

	* xwin.c, xinit.h, xinit.c, xevent.c, thread.h, thread.c, main.c:
	Motti now shows information about remaining attacks to passive players.
	End of game now signaled with ClientMessage.  Added checks to make sure
	all X threads are initalized before sending any events to them.

Mon Oct 11 21:30:47 1999  Kari Pahula  <kari@shiva>

	* xinit.h, xinit.c, xevent.c:
	Added a smart mouse button, which is able to do all the actions.

	* occupy.c:
	Now an inactive player correctly becomes active again after an encirclement
	if it unoccupies some cells, so that the inactive player can again act.

	* xwin.h, xwin.c, xinit.h, xinit.c, xevent.h, xevent.c, occupy.c, map.h, map.c, main.c:
	Done major restructuring.  Uses now threads for net play by opening multiple
	displays.

	* thread.c, thread.h: Initial revision

Fri Oct  8 15:44:28 1999  Kari Pahula  <kari@shiva>

	* wrappers.c:
	Function my_malloc called die on error.  Function die called my_malloc.
	Fixed.

Mon Sep 13 18:53:40 1999  Kari Pahula  <kari@shiva>

	* wrappers.h, wrappers.c: die () uses now variable arg list

Sat Aug 28 15:02:54 1999  Kari Pahula  <kari@shiva>

	* map.h, map.c:
	Separated the toggling of a cross and the check into different functions.

Thu Aug 26 20:42:41 1999  Kari Pahula  <kari@shiva>

	* fill.c: Fixed fill optimization again.  Should work now.

Wed Aug 25 19:54:44 1999  Kari Pahula  <kari@shiva>

	* occupy.c: Fixed deadlock situation.  Added game end.

Sun Aug 15 17:20:31 1999  Kari Pahula  <kari@shiva>

	* fill.c: Fixed a bug in fill.  I had overoptimized it.

Sat Aug 14 18:38:57 1999  Kari Pahula  <kari@shiva>

	* fill.c, main.c, xwin.c, xinit.c, occupy.c: Code cleanup.

	* map.c, occupy.c, xevent.c, xinit.h, xinit.c, xwin.h, xwin.c:
	Added an end game message, the game no longer simply exits on end. Finally
	fixed (accidentally) the bug with XSetWindowBackgroundPixmap, att_pix and
	gcc in xwin.c.

Fri Jul  9 21:29:22 1999  Kari Pahula  <kari@shiva>

	* fill.c: Function fill() modified to be faster.

Fri Jun 11 09:07:21 1999  Kari Pahula  <kari@shiva>

	* fill.c:
	Found the bug.  Now fill should work perfectly.  That was officially
	the last bug.  If you think you've found another bug, it's not a bug,
	it's a feature.  :-)

Thu Jun 10 21:08:06 1999  Kari Pahula  <kari@shiva>

	* fill.c:
	Fill uses a true stack now, and the code is now much cleaner and less
	messier.  There's still one bug, though, with realloc.  Couldn't fix
	it.  :-(

	* xinit.c: Geometry now set more correctly.  Hopefully.

Fri Jun  4 16:59:20 1999  Kari Pahula  <kari@shiva>

	* xwin.h, xwin.c, occupy.h, occupy.c, xevent.c, wrappers.h, wrappers.c, map.h, map.c, xinit.h, xinit.c:
	Actions bound to the mouse buttons.

Thu Jun  3 18:44:18 1999  Kari Pahula  <kari@shiva>

	* xinit.h, xwin.h, xwin.c, xinit.c:
	Some X-specific constants now correctly defined in resources.

Thu May 27 23:11:13 1999  Kari Pahula  <kari@shiva>

	* wrappers.c, xwin.h, occupy.c, xevent.c, xwin.c, xinit.c, xinit.h, wrappers.h:
	Added a turn window, which displays the turn and the number of crosses left
	to place.

Sat May 22 21:12:18 1999  Kari Pahula  <kari@shiva>

	* occupy.c:
	Inactive players now checked _before_ turn change, so no useless turns can
	occur.

	* occupy.h, occupy.c, map.h, xwin.c:
	Should now work correctly with more than two players.  Many things changed.

	* xinit.c:
	Removed player check in alloc_colors, since it was in a wrong place.

	* fill.c: Fill failed to visit each cell in some circumstances.  Fixed.

Fri May 21 18:09:26 1999  Kari Pahula  <kari@shiva>

	* curses_if.h: Initial revision

Sat May  8 10:44:20 1999  Kari Pahula  <kari@shiva>

	* xinit.h, xevent.h, occupy.h, fill.h: Initial revision

	* fill.c:
	Scan coordinates now defined differently internally in function fill.

Thu Apr 29 16:57:52 1999  Kari Pahula  <kari@shiva>

	* wrappers.c, xinit.c, xwin.c:
	Includes now either string.h or strings.h, defined in configure script.

Wed Apr 28 15:46:51 1999  Kari Pahula  <kari@shiva>

	* xinit.c:
	Now uses correctly hard-coded defaults, if they're otherwise absent.

	* wrappers.h: Initial revision

Thu Apr 15 18:35:44 1999  Kari Pahula  <kari@shiva>

	* main.c, xinit.c:
	Now uses version number string defined in configure script

	* xinit.c: unistd.h now included only if gethostname is present

Mon Apr 12 19:20:54 1999  Kari Pahula  <kari@shiva>

	* curses_if.c, fill.c, main.c, map.c, occupy.c, wrappers.c, xevent.c, xinit.c, xwin.c:
	Config.h now used in source

	* xinit.c:
	App-defaults path defined in configure script is now used here correctly

	* wrappers.c, occupy.c, fill.c: Initial revision

Fri Apr  9 12:05:40 1999  Kari Pahula  <kari@shiva>

	* main.c:
	Motti now correctly prints an error message if no map specified

	* curses_if.c: Put file in #ifdef HAVE_LIBNCURSES
	* xevent.c: Put file in #ifdef HAVE_LIBX11
	* xinit.c: Put file in #ifdef HAVE_LIBX11
	* xwin.c: Put file in #ifdef HAVE_LIBX11

	* xinit.c: Initial revision

	* curses_if.c: Map scrolling (hopefully) fixed

Tue Apr  6 13:32:21 1999  Kari Pahula  <kari@shiva>

	* map.c: Fixed a typo in get_map_real_coord.

Mon Apr  5 15:57:04 1999  Kari Pahula  <kari@shiva>

	* map.h: Moved action button update resolution from
	xwin.c:update_buttons to map.c:need_update.

	* xwin.c: Made a workaround in update_buttons for a bug in gcc.

	* xevent.c: Moved action button update resolution from
	xwin.c:update_buttons to map.c:need_update.
	* map.c: Moved action button update resolution from
	xwin.c:update_buttons to map.c:need_update.
	* xwin.h: Moved action button update resolution from
	xwin.c:update_buttons to map.c:need_update.
	* xwin.c: Moved action button update resolution from
	xwin.c:update_buttons to map.c:need_update.
	* main.c: Added curses interface.

	* main.c, curses_if.c: *** empty log message ***

Sat Mar 27 23:17:07 1999  Kari Pahula  <kari@shiva>

	* xevent.c, xwin.h, map.c, map.h, xwin.c: *** empty log message ***

