head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.54 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.52 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.50 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.48 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.46 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.44 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.42 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.40 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.38 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.36 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.34 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.32 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.30 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.28 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.26 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.24 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.22 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.20 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.18 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.16 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.14 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.12 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.10 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.8 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.6 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.4 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH001:1.1; locks; strict; comment @# @; 1.3 date 2002.10.19.20.06.46; author heinz; state dead; branches; next 1.2; 1.2 date 2001.07.05.22.07.59; author kristerw; state Exp; branches; next 1.1; 1.1 date 2000.12.20.01.23.05; author wiz; state Exp; branches; next ; desc @@ 1.3 log @Update to rocksndiamonds 2.1.1. Maybe someone can check how well this works with pkgsrc on MacOS X (see below). Summary of changes since rocksndiamonds-2.0.0 ============================================= - lots of new contributed levels Release Version 2.1.1 [13 AUG 2002] ----------------------------------- - sound bug (causing crashes) fixed (reported by Keith Peterston) - small NetBSD compilation bug fixed (thanks to Adam Ciarcinski) - default keys for "snap field" and "place bomb" fixed for Mac OS X Release Version 2.1.0 [05 AUG 2002] ----------------------------------- - native Mac OS X port (finally!) - graphics, sounds and music now fully configurable - added support for TrueColor PCX graphics files - added support for 16 bit WAV sound files - enhanced sound system (especially regarding stereo and loop sounds) - new structured setup menu (with sub-menues for graphics and sounds) - added "quick save" and "quick load" functions with shortcut key - added single-step playing mode (automatic pause after each step) - behaviour of "Escape" key in level editor now more intuitive - changed default slipping behaviour of gems back to 2.0.0 style; this is now an element property for gems in the level editor, although existing converted levels use the new EM gems behaviour - bug fixed that prevented walking through tubes when gravity on - added Boulder Dash style "snap-pushing" (thanks to Achim Härtel) - fixed memory leak in image loading code - fixed some "solid" elements that were accidentally destructible - fixed some tape stuff - added custom graphics set "Animal Kingdom" by Flyboy Release Version 2.0.1 [19 MAR 2002] ----------------------------------- - bug in explosion code fixed that broke level 24 of "Baby Ghost Mine" - several Supaplex emulation bugs fixed (thanks to Mihail Milushev): + orange disk does not fall off from slippery elements + infotrons kill electrons and snik snaks and trigger orange disks + explosion chain reactions are now a bit slower than murphy - behaviour of robots adjusted to make them less aggressive (needed for quite some Emerald Mine Club levels) - emeralds and diamonds now fall off normal, steel and growing walls, as this is the correct behaviour in Emerald Mine; existing private and contributed levels will still behave as before, unless saved again (with or without modifications) from the level editor of the current version of the game - icon for Windows executable added - bug when selecting default level series fixed - new IFF style file format for level and tape files - bug in storing amoeba content fixed - nasty tape bugs fixed (completely reworked tape stuff) - fullscreen mode now works with Windows (workaround for bug in SDL) - /dev/dsp support for NetBSD added (thanks to Krister Walfridsson) - file permissions when saving files and creating directories changed - some small sound bugs fixed @ text @$NetBSD: patch-ad,v 1.2 2001/07/05 22:07:59 kristerw Exp $ --- src/libgame/sound.c.orig Sun Dec 31 11:47:19 2000 +++ src/libgame/sound.c Thu Jul 5 23:37:59 2001 @@@@ -291,7 +291,30 @@@@ - 2 buffers / 512 bytes (giving 1/16 second resolution for 8 kHz) - (with stereo the effective buffer size will shrink to 256) => fragment_size = 0x00020009 */ +#if defined(PLATFORM_NETBSD) + { + audio_info_t a_info; + AUDIO_INITINFO(&a_info); + a_info.play.encoding = AUDIO_ENCODING_LINEAR8; + a_info.play.precision = 8; + a_info.play.channels = 2; + a_info.play.sample_rate = sample_rate; + a_info.blocksize = fragment_size; + if (ioctl(audio.device_fd, AUDIO_SETINFO, &a_info) < 0) + { + /* Try to disable stereo. */ + a_info.play.channels = 1; + stereo = FALSE; + if (ioctl(audio.device_fd, AUDIO_SETINFO, &a_info) < 0) + { + Error(ERR_EXIT_SOUND_SERVER, + "cannot set sample rate of /dev/audio - no sounds"); + playing_sounds = 0; + } + } + } +#else if (ioctl(audio.device_fd,SNDCTL_DSP_SETFRAGMENT,&fragment_spec) < 0) Error(ERR_EXIT_SOUND_SERVER, "cannot set fragment size of /dev/dsp - no sounds"); @@@@ -319,7 +342,7 @@@@ if (ioctl(audio.device_fd, SNDCTL_DSP_GETBLKSIZE,&fragment_size) < 0) Error(ERR_EXIT_SOUND_SERVER, "cannot get fragment size of /dev/dsp - no sounds"); - +#endif max_sample_size = fragment_size / (stereo ? 2 : 1); } @ 1.2 log @Update rocksndiamonds to version 2.0.0 Changes since version 1.4.0: - major code redesign to maintain generic game functions in a separate library and make it easier to port the game to new targets like SDL - can be compiled with SDL library to build native Windows version - DOS and Windows versions can be compiled with gcc cross-compiler - trying to open already busy audio device does not block the game - fixed network playing bug (patch from web site) - SDL version can load and play music modules - fixed element description in level editor for EM doors and keys @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Apply network patch from distribution site (to small to fetch, just added it), and allow usage of CFLAGS from environment. Patches supplied by Adam Ciarcinski in private mail. @ text @d2 9 a10 6 --- src/network.c.orig Mon Oct 4 01:12:04 1999 +++ src/network.c Tue Dec 19 13:26:26 2000 @@@@ -237,9 +237,9 @@@@ buffer[8] = (unsigned char)((new_random_seed >> 8) & 0xff); buffer[9] = (unsigned char)((new_random_seed >> 0) & 0xff); d12 31 a42 2 - strcpy((char *)&buffer[10], leveldir_current->name); + strcpy((char *)&buffer[10], leveldir_current->filename); a43 5 - SendBufferToServer(10 + strlen(leveldir_current->name) + 1); + SendBufferToServer(10 + strlen(leveldir_current->filename) + 1); } void SendToServer_PausePlaying() @