2002-08-15  Daniel Heck  <dheck@ix.urz.uni-heidelberg.de>

	* items.cc (Trigger): Applied a patch by Andrzej Szombierski that
	fixes the behaviour of triggers when activated by stones.

2002-08-14  Daniel Heck  <dheck@ix.urz.uni-heidelberg.de>

	* levels/martin19.lua,levels/martin26.lua: Adapted to work with
	the modified doors.

	* world.cc (handle_stone_contact): Call Stone::actor_contact if
	necessary.

	* objects.hh (Stone::actor_contact): New method.  Called when an
	actor is inside a stone but not moving towards is (so it's not
	really a collision, for which actor_hit is called).  Used mainly
	to fix the behaviour of doors.

	* objects.cc (Door::actor_inside): New method. Kill actors that
	stand inside a closing door.

	* sound.cc (Init): Changed size of soundbuffer to 1024 byte.  This
	should fixed lagging sound on Win32 systems.

	* enigma.cc (Game): Added new state: PLAYERDEAD.
	(tick): Do not restart level immediately when the player's marble
	is dead; enter state PLAYERDEAD instead.

	* models-2d.lua: Added animation for active death's head.

	* objects.cc (TimerStone::alarm): Do not play sound when the
	timer emits a signal.

	* enigma.cc (Game::tick): Wait a little before changing to the
	next level.

	* actors.cc (Whiteball_small::change_state): Play shattering
	animation.

2002-08-13  Daniel Heck  <dheck@ix.urz.uni-heidelberg.de>

	* gui.cc: Play sound when button is pressed.

	* sound/Makefile.am (pkgdata_DATA): Added missing sound effects.

	* actors.cc (Actor::move): Removed debugging message.

	* Makefile.am (pkgdata_DATA): Include init.lua.

	* init.lua: Moved here from the levels directory.

	* enigma.cc (Game::run): Fadeout music before stopping it.

	* sound.cc (FadoutMusic): New function.
	(StopMusic): Forgot to reset current_music_name.

	* enigma.cc (DataPathList): New class for maintaining the list of
	data directories.
	(SetDataPath, GetDataPath): New public functions.

	* levels/index.lua: Added names for a few levels.

	* models-2d.lua: Use different models for sloped floors when in
	WizardMode.

2002-08-12  Daniel Heck  <dheck@ix.urz.uni-heidelberg.de>

	* enigma.cc (LevelMenu::scroll_up,scroll_down): New functions. 
	(LevelMenu::manage): Fix mousewheel scrolling.

2002-08-11  Daniel Heck  <dheck@ix.urz.uni-heidelberg.de>

	* enigma.cc (Game): Removed unused level_finished_p().

	* world.cc (handle_contacts): Fixed bug in collision detection.

	* items.cc (Hollow): Finish the level when all hollows contain a
	small white marble.

2002-08-10  Daniel Heck  <dheck@ix.urz.uni-heidelberg.de>

	* px/font.cc (render): new method.

	* models-2d.lua: added progress indicator

	* lua.cc (display_text_centered): new function.

	* video.cc (DisplayTextCentered): new function.

	* px/array2.hh (Array2::resize): new method.
	(Array2::Array2): constructor can be called without arguments.

2002-07-09  Daniel Heck  <dheck@ix.urz.uni-heidelberg.de>

	* enigma.cc (game): Load level list only once at the beginning of
	the game.
	(LevelMenu::paint): Mark levels that have already been completed.

	* objects.cc (OneWayStone::actor_hit): Use contact_faces() instead
	of contact_face().  This fixes a bug where you could move through
	two adjacent oneway stones.

	* world.cc (contact_faces): New function.

