btb/d2x.git
14 years agofix bug where loading a hxm would affect other levels too
Martin Schaffner [Fri, 19 Nov 2004 18:56:32 +0000 (18:56 +0000)]
fix bug where loading a hxm would affect other levels too

14 years agofor enhanced missions, load add-on ham file at every load, not only 1st
Martin Schaffner [Fri, 19 Nov 2004 18:42:48 +0000 (18:42 +0000)]
for enhanced missions, load add-on ham file at every load, not only 1st

14 years agodon't corrupt model_data, so it can be freed properly
Martin Schaffner [Fri, 19 Nov 2004 18:29:20 +0000 (18:29 +0000)]
don't corrupt model_data, so it can be freed properly

14 years agocompile again on older C compilers
Martin Schaffner [Fri, 19 Nov 2004 18:02:32 +0000 (18:02 +0000)]
compile again on older C compilers

14 years agofix Mac OS 9 bug with missions > 12 chars
Martin Schaffner [Tue, 16 Nov 2004 20:04:11 +0000 (20:04 +0000)]
fix Mac OS 9 bug with missions > 12 chars

14 years agomake Mac OS X OpenGL verify textures
Martin Schaffner [Sun, 14 Nov 2004 09:50:36 +0000 (09:50 +0000)]
make Mac OS X OpenGL verify textures

14 years agomake Mac OS 9 Voodoo display textures
Martin Schaffner [Sun, 14 Nov 2004 09:34:23 +0000 (09:34 +0000)]
make Mac OS 9 Voodoo display textures

14 years agoread descent 1 textures also from shareware version of descent.hog. This is not yet...
Martin Schaffner [Sat, 30 Oct 2004 18:34:28 +0000 (18:34 +0000)]
read descent 1 textures also from shareware version of descent.hog. This is not yet bug-free

14 years agofix crash introduced with previous change
Martin Schaffner [Sat, 30 Oct 2004 10:30:57 +0000 (10:30 +0000)]
fix crash introduced with previous change

14 years agomove all mission stuff to mission.{c,h}, make mission structre memory allocated
Martin Schaffner [Sun, 24 Oct 2004 12:46:49 +0000 (12:46 +0000)]
move all mission stuff to mission.{c,h}, make mission structre memory allocated

14 years agoadd comment
Martin Schaffner [Sat, 23 Oct 2004 21:20:19 +0000 (21:20 +0000)]
add comment

14 years agoremove warning created by the fix for the cfgets issue of 2004-08-29
Martin Schaffner [Sat, 23 Oct 2004 20:53:08 +0000 (20:53 +0000)]
remove warning created by the fix for the cfgets issue of 2004-08-29

14 years agoremove explicit uses of mission list
Martin Schaffner [Sat, 23 Oct 2004 19:39:35 +0000 (19:39 +0000)]
remove explicit uses of mission list

14 years agocorrect comments about anarchy-only
Martin Schaffner [Sat, 23 Oct 2004 19:15:46 +0000 (19:15 +0000)]
correct comments about anarchy-only

14 years agoremove unnecessary build_mission_list call
Martin Schaffner [Sat, 23 Oct 2004 19:09:58 +0000 (19:09 +0000)]
remove unnecessary build_mission_list call

14 years agomove mission list handling functionality to mission.c, remove unnecessary load_missio...
Martin Schaffner [Sat, 23 Oct 2004 18:59:02 +0000 (18:59 +0000)]
move mission list handling functionality to mission.c, remove unnecessary load_mission calls in menu.c

14 years agodelete file main/compbit.h and adapt users to use text.c/text.h
Martin Schaffner [Sat, 23 Oct 2004 17:42:13 +0000 (17:42 +0000)]
delete file main/compbit.h and adapt users to use text.c/text.h

14 years agodeclare variable on top of block
Martin Schaffner [Sat, 23 Oct 2004 16:28:32 +0000 (16:28 +0000)]
declare variable on top of block

14 years agomake it compile on Cygwin
Martin Schaffner [Thu, 21 Oct 2004 16:34:57 +0000 (16:34 +0000)]
make it compile on Cygwin

14 years agomake it compile on Cygwin
Martin Schaffner [Thu, 21 Oct 2004 16:33:11 +0000 (16:33 +0000)]
make it compile on Cygwin

14 years agoadd mprintf support for carbon (Mac OS 9)
Martin Schaffner [Thu, 14 Oct 2004 16:54:45 +0000 (16:54 +0000)]
add mprintf support for carbon (Mac OS 9)

14 years agofix crash on Mac OS X, probably fix bug 738
Martin Schaffner [Thu, 14 Oct 2004 16:43:23 +0000 (16:43 +0000)]
fix crash on Mac OS X, probably fix bug 738

14 years agofix bug uncovered by having fgets cut off ending \n
Martin Schaffner [Thu, 14 Oct 2004 16:30:56 +0000 (16:30 +0000)]
fix bug uncovered by having fgets cut off ending \n

14 years agofix bug 1675: use better d2 textures if d1 hog is present but not loadable
Martin Schaffner [Sat, 9 Oct 2004 21:52:43 +0000 (21:52 +0000)]
fix bug 1675: use better d2 textures if d1 hog is present but not loadable

14 years agocorrect warnings caused by change of 2004-09-30
Martin Schaffner [Sat, 9 Oct 2004 21:47:49 +0000 (21:47 +0000)]
correct warnings caused by change of 2004-09-30

14 years agouse new macros PLAYING_BUILTIN_MISSION and EMULATING_D1 for accessing information...
Martin Schaffner [Sat, 9 Oct 2004 15:59:28 +0000 (15:59 +0000)]
use new macros PLAYING_BUILTIN_MISSION and EMULATING_D1 for accessing information about the current mission, for easier code refactorisation
VS: ----------------------------------------------------------------------

14 years agosimplify cfile.c, reduce number of global vars
Martin Schaffner [Wed, 29 Sep 2004 22:40:28 +0000 (22:40 +0000)]
simplify cfile.c, reduce number of global vars

14 years agofix bugfix of 2004-05-15
Martin Schaffner [Sun, 5 Sep 2004 12:07:01 +0000 (12:07 +0000)]
fix bugfix of 2004-05-15

14 years agocfgets now always copies the terminating character to the dest buffer.
Martin Schaffner [Sun, 29 Aug 2004 17:57:23 +0000 (17:57 +0000)]
cfgets now always copies the terminating character to the dest buffer.
This fixes a bug that occured when reading cmd line args from d2x.ini

14 years agochange macify_dospath to macify_posix_path for carbon
Martin Schaffner [Sun, 29 Aug 2004 17:39:33 +0000 (17:39 +0000)]
change macify_dospath to macify_posix_path for carbon

14 years agomove more old change logs into ChangeLog-old
Martin Schaffner [Sun, 29 Aug 2004 14:03:51 +0000 (14:03 +0000)]
move more old change logs into ChangeLog-old

14 years agomove old per-file change logs into new file ChangeLog-old
Martin Schaffner [Sat, 28 Aug 2004 23:37:35 +0000 (23:37 +0000)]
move old per-file change logs into new file ChangeLog-old

14 years agomove old per-file change logs into new file ChangeLog-old
Martin Schaffner [Sat, 28 Aug 2004 23:17:46 +0000 (23:17 +0000)]
move old per-file change logs into new file ChangeLog-old

14 years agoimplement findfile for Mac OS Carbon
Martin Schaffner [Sat, 28 Aug 2004 19:47:07 +0000 (19:47 +0000)]
implement findfile for Mac OS Carbon

14 years agoenable -gl_mipmap switch
Martin Schaffner [Sat, 28 Aug 2004 18:11:19 +0000 (18:11 +0000)]
enable -gl_mipmap switch

14 years agoswap min and max size to correct places
Martin Schaffner [Sat, 28 Aug 2004 17:44:48 +0000 (17:44 +0000)]
swap min and max size to correct places

14 years agoadd mkdir for carbon, and support files ending in 0x0d
Martin Schaffner [Tue, 17 Aug 2004 19:36:50 +0000 (19:36 +0000)]
add mkdir for carbon, and support files ending in 0x0d

14 years agofix a bug introduced with change of 2004-06-26
Martin Schaffner [Tue, 17 Aug 2004 18:02:43 +0000 (18:02 +0000)]
fix a bug introduced with change of 2004-06-26

14 years agoon Mac OS 9 and X, define Int3 to be a Debugger
Martin Schaffner [Fri, 6 Aug 2004 21:28:27 +0000 (21:28 +0000)]
on Mac OS 9 and X, define Int3 to be a Debugger

14 years agodisable mprintf on carbon to avoid significant bloat
Martin Schaffner [Fri, 6 Aug 2004 20:52:49 +0000 (20:52 +0000)]
disable mprintf on carbon to avoid significant bloat

14 years agomake d2x compile (but not link) on MPW on Mac OS 9 (carbon)
Martin Schaffner [Fri, 6 Aug 2004 20:36:02 +0000 (20:36 +0000)]
make d2x compile (but not link) on MPW on Mac OS 9 (carbon)

14 years agod2x can now handle any line ending when reading d2x.ini
Martin Schaffner [Fri, 6 Aug 2004 20:28:57 +0000 (20:28 +0000)]
d2x can now handle any line ending when reading d2x.ini

14 years agoInclude glu.h for Mac OS X, it is sometimes necessary
Martin Schaffner [Tue, 3 Aug 2004 21:02:53 +0000 (21:02 +0000)]
Include glu.h for Mac OS X, it is sometimes necessary

14 years agoThis time, I correctly applied Chris Taylor's patch
Martin Schaffner [Tue, 3 Aug 2004 20:27:32 +0000 (20:27 +0000)]
This time, I correctly applied Chris Taylor's patch

14 years agoavoid assigments between unsigned and signed char, MPW does not like these
Martin Schaffner [Sun, 1 Aug 2004 16:28:33 +0000 (16:28 +0000)]
avoid assigments between unsigned and signed char, MPW does not like these

14 years agouse portable ffilelength in cfile_size
Martin Schaffner [Sun, 1 Aug 2004 14:32:07 +0000 (14:32 +0000)]
use portable ffilelength in cfile_size

14 years agouse portable CFILE instead of POSIX file in write_bmp
Martin Schaffner [Sun, 1 Aug 2004 14:22:54 +0000 (14:22 +0000)]
use portable CFILE instead of POSIX file in write_bmp

14 years agodo not seek while writing, carbon does not like it
Martin Schaffner [Sun, 1 Aug 2004 14:17:10 +0000 (14:17 +0000)]
do not seek while writing, carbon does not like it

14 years agoadd str(n)icmp for carbon
Martin Schaffner [Sun, 1 Aug 2004 14:01:23 +0000 (14:01 +0000)]
add str(n)icmp for carbon

14 years agoinclude/strutil.h, misc/strutil.c: add str(n)icmp for carbon
Martin Schaffner [Sun, 1 Aug 2004 13:28:32 +0000 (13:28 +0000)]
include/strutil.h, misc/strutil.c: add str(n)icmp for carbon

14 years agoNew file for supporting compilation with MPW for carbon (Mac OS 9)
Martin Schaffner [Sun, 1 Aug 2004 13:08:34 +0000 (13:08 +0000)]
New file for supporting compilation with MPW for carbon (Mac OS 9)

14 years agoadd "#ifdef macintosh" for carbon target
Martin Schaffner [Sun, 1 Aug 2004 13:01:39 +0000 (13:01 +0000)]
add "#ifdef macintosh" for carbon target

14 years agoremove some unneccesary globals
Martin Schaffner [Sat, 26 Jun 2004 16:27:17 +0000 (16:27 +0000)]
remove some unneccesary globals

15 years agocast malloc function pointer
Bradley Bell [Tue, 1 Jun 2004 07:49:07 +0000 (07:49 +0000)]
cast malloc function pointer

15 years agoadded MVEPlayer target to XCode project
Bradley Bell [Tue, 1 Jun 2004 07:47:46 +0000 (07:47 +0000)]
added MVEPlayer target to XCode project

15 years agooops, this didn't belong in last commit
Bradley Bell [Tue, 1 Jun 2004 06:09:39 +0000 (06:09 +0000)]
oops, this didn't belong in last commit

15 years agofix accidental solaris breakage
Bradley Bell [Tue, 1 Jun 2004 06:00:32 +0000 (06:00 +0000)]
fix accidental solaris breakage

15 years agofix crash caused by death-cam
Bradley Bell [Mon, 31 May 2004 18:22:20 +0000 (18:22 +0000)]
fix crash caused by death-cam

15 years agoXCode project cleanups, network enabled
Bradley Bell [Mon, 31 May 2004 10:22:06 +0000 (10:22 +0000)]
XCode project cleanups, network enabled

15 years agoXCode project cleanups, network enabled
Bradley Bell [Mon, 31 May 2004 10:21:40 +0000 (10:21 +0000)]
XCode project cleanups, network enabled

15 years agoXCode compilability fixes
Bradley Bell [Mon, 31 May 2004 08:33:41 +0000 (08:33 +0000)]
XCode compilability fixes

15 years agoremove old OSX bundle stuff
Bradley Bell [Mon, 31 May 2004 08:20:44 +0000 (08:20 +0000)]
remove old OSX bundle stuff

15 years agoadded XCode project files
Bradley Bell [Mon, 31 May 2004 07:50:17 +0000 (07:50 +0000)]
added XCode project files

15 years agoadded XCode project files
Bradley Bell [Mon, 31 May 2004 07:45:26 +0000 (07:45 +0000)]
added XCode project files

15 years agomake libpng optional
Bradley Bell [Sun, 23 May 2004 00:21:06 +0000 (00:21 +0000)]
make libpng optional

15 years agoChanged descriptions
Bradley Bell [Sat, 22 May 2004 23:43:06 +0000 (23:43 +0000)]
Changed descriptions

15 years agoadd opengl replacement texture support (requires libpng and zlib) (d1x r1.42, r1...
Bradley Bell [Sat, 22 May 2004 23:41:29 +0000 (23:41 +0000)]
add opengl replacement texture support (requires libpng and zlib) (d1x r1.42, r1.1, r1.10, r1.4, r1.1)

15 years agofix compile when GL_NV_register_combiners isn't defined (d1x r1.40)
Bradley Bell [Sat, 22 May 2004 23:06:58 +0000 (23:06 +0000)]
fix compile when GL_NV_register_combiners isn't defined (d1x r1.40)

15 years agofix strict-aliasing errors (d1x r1.13)
Bradley Bell [Sat, 22 May 2004 23:01:20 +0000 (23:01 +0000)]
fix strict-aliasing errors (d1x r1.13)

15 years agoFix mismatched arg types in the win32 code (d1x r1.8, key_arch.c r1.2)
Bradley Bell [Sat, 22 May 2004 22:58:09 +0000 (22:58 +0000)]
Fix mismatched arg types in the win32 code (d1x r1.8, key_arch.c r1.2)

15 years agomade opengl use 32bpp screen mode by default, add option to use 16bpp (d1x r1.4,...
Bradley Bell [Sat, 22 May 2004 22:43:56 +0000 (22:43 +0000)]
made opengl use 32bpp screen mode by default, add option to use 16bpp (d1x r1.4, r1.16, r1.34)

15 years agoallow for texture dimensions of 1, and fix ogl replacement texture paletted->rgb...
Bradley Bell [Sat, 22 May 2004 22:29:20 +0000 (22:29 +0000)]
allow for texture dimensions of 1, and fix ogl replacement texture paletted->rgb conversion alpha problem (d1x r1.43)

15 years agoadd opengl replacement texture support (requires libpng and zlib) (d1x r1.42, r1...
Bradley Bell [Sat, 22 May 2004 22:24:32 +0000 (22:24 +0000)]
add opengl replacement texture support (requires libpng and zlib) (d1x r1.42, r1.1, r1.10, r1.4, r1.1)

15 years agofix win32 GL_NV_register_combiners build stuff (d1x r1.39, r1.7)
Bradley Bell [Sat, 22 May 2004 21:55:33 +0000 (21:55 +0000)]
fix win32 GL_NV_register_combiners build stuff (d1x r1.39, r1.7)

15 years agoopengl hardware super-transparency support using GL_NV_register_combiners (d1x r1...
Bradley Bell [Sat, 22 May 2004 21:48:48 +0000 (21:48 +0000)]
opengl hardware super-transparency support using GL_NV_register_combiners (d1x r1.38, r1.41, r1.6, r1.26, r1.7)

15 years agofunction prototypes
Bradley Bell [Sat, 22 May 2004 09:21:24 +0000 (09:21 +0000)]
function prototypes

15 years agouse GL_RGB for non-transparent textures, and fix fonts not having transparent flag...
Bradley Bell [Sat, 22 May 2004 09:15:28 +0000 (09:15 +0000)]
use GL_RGB for non-transparent textures, and fix fonts not having transparent flag set (wouldn't get paletted) (d1x r1.15, r1.37, r1.40, r1.25)

15 years agodon't try to use paletted textures with mipmapping since gluBuild2DMipmaps can't...
Bradley Bell [Sat, 22 May 2004 08:47:14 +0000 (08:47 +0000)]
don't try to use paletted textures with mipmapping since gluBuild2DMipmaps can't handle it (d1x r1.39)

15 years agoadd ogl paletted texture support (d1x r1.36, r1.38, r1.5, r1.24)
Bradley Bell [Sat, 22 May 2004 08:43:11 +0000 (08:43 +0000)]
add ogl paletted texture support (d1x r1.36, r1.38, r1.5, r1.24)

15 years agomemset ogl font bitmap data since the copy function leaves some (unused) parts uninit...
Bradley Bell [Sat, 22 May 2004 08:10:26 +0000 (08:10 +0000)]
memset ogl font bitmap data since the copy function leaves some (unused) parts uninitialized, which aggravates valgrind (d1x r1.14)

15 years agofix phantom hat when used with a joystick without one, since the code ignored the...
Bradley Bell [Sat, 22 May 2004 08:00:04 +0000 (08:00 +0000)]
fix phantom hat when used with a joystick without one, since the code ignored the JOYCAPS_HASPOV flag (d1x r1.5)

15 years agofix possibility of saving incomplete .tga screenshots if the entire thing wasn't...
Bradley Bell [Sat, 22 May 2004 07:55:34 +0000 (07:55 +0000)]
fix possibility of saving incomplete .tga screenshots if the entire thing wasn't written in one call to write() (d1x r1.35)

15 years agofix persistent sounds (fans, etc) volume/pan info not being updated on win32 (d1x...
Bradley Bell [Sat, 22 May 2004 07:51:33 +0000 (07:51 +0000)]
fix persistent sounds (fans, etc) volume/pan info not being updated on win32 (d1x r1.11)

15 years agoremove some redundancy by not needing to do SoundSlots[i].playing = 0; in addition...
Bradley Bell [Sat, 22 May 2004 07:42:18 +0000 (07:42 +0000)]
remove some redundancy by not needing to do SoundSlots[i].playing = 0; in addition to DS_release_slot.  Also clean up some indenting of DS_release_slot calls. And make DS_release_slot return 1 when a sound is already not playing, in addition to when a sound was killed. (d1x r1.10)

15 years agofix crash/hang when using -nojoystick in linux version (d1x r1.5)
Bradley Bell [Sat, 22 May 2004 07:31:38 +0000 (07:31 +0000)]
fix crash/hang when using -nojoystick in linux version (d1x r1.5)

15 years agomake next axis config key skip currently allocated axes (d1x r1.11)
Bradley Bell [Sat, 22 May 2004 07:27:29 +0000 (07:27 +0000)]
make next axis config key skip currently allocated axes (d1x r1.11)

15 years agojoy configuration next axis key from WraithX (d1x r1.10)
Bradley Bell [Sat, 22 May 2004 07:20:54 +0000 (07:20 +0000)]
joy configuration next axis key from WraithX (d1x r1.10)

15 years agotypo
Bradley Bell [Sat, 22 May 2004 07:16:04 +0000 (07:16 +0000)]
typo

15 years agotypo
Bradley Bell [Sat, 22 May 2004 07:14:59 +0000 (07:14 +0000)]
typo

15 years agomake rear view leave_time variable with -rearviewleavetime argument (d1x r1.25, r1...
Bradley Bell [Sat, 22 May 2004 06:56:41 +0000 (06:56 +0000)]
make rear view leave_time variable with -rearviewleavetime argument (d1x r1.25, r1.5, r1.27)

15 years agochange -udp documentation to d2x behaviour
Martin Schaffner [Sat, 22 May 2004 02:31:48 +0000 (02:31 +0000)]
change -udp documentation to d2x behaviour

15 years agofile-line for segfault info (d1x r1.3, r1.5, r1.3, r1.4, r1.3, r1.5, r1.2)
Bradley Bell [Sat, 22 May 2004 02:05:51 +0000 (02:05 +0000)]
file-line for segfault info (d1x r1.3, r1.5, r1.3, r1.4, r1.3, r1.5, r1.2)

15 years agoadded missing define for menu fullscreen toggle
Bradley Bell [Sat, 22 May 2004 02:01:34 +0000 (02:01 +0000)]
added missing define for menu fullscreen toggle

15 years agouse JOY_NUM_AXES instead of 4 in joy_(get|set)_cal_vals (d1x r1.3, r1.4)
Bradley Bell [Sat, 22 May 2004 01:40:14 +0000 (01:40 +0000)]
use JOY_NUM_AXES instead of 4 in joy_(get|set)_cal_vals (d1x r1.3, r1.4)

15 years agopatch from Steven Mueller for using more than 4 joystick devices in linux (d1x r1...
Bradley Bell [Sat, 22 May 2004 01:32:13 +0000 (01:32 +0000)]
patch from Steven Mueller for using more than 4 joystick devices in linux (d1x r1.3, r1.3, r1.3)

15 years agofile-line for segfault info (d1x r1.3, r1.5, r1.3, r1.4, r1.3, r1.5, r1.2)
Bradley Bell [Sat, 22 May 2004 01:06:29 +0000 (01:06 +0000)]
file-line for segfault info (d1x r1.3, r1.5, r1.3, r1.4, r1.3, r1.5, r1.2)

15 years agodigisound fixes (d1x r1.7)
Bradley Bell [Sat, 22 May 2004 00:50:42 +0000 (00:50 +0000)]
digisound fixes (d1x r1.7)

15 years agoadded -udp documentation from d1x
Bradley Bell [Sat, 22 May 2004 00:26:25 +0000 (00:26 +0000)]
added -udp documentation from d1x

15 years agodon't need texmappers for OpenGL
Bradley Bell [Fri, 21 May 2004 02:56:22 +0000 (02:56 +0000)]
don't need texmappers for OpenGL

15 years agodeath-cam from WraithX (d1x r1.3, game.c r1.21, r1.6, r1.4, r1.3)
Bradley Bell [Fri, 21 May 2004 02:46:24 +0000 (02:46 +0000)]
death-cam from WraithX (d1x r1.3, game.c r1.21, r1.6, r1.4, r1.3)