btb/d2x.git
14 years agobuild dumpmine.c for editor
Bradley Bell [Sun, 19 Dec 2004 13:56:37 +0000 (13:56 +0000)]
build dumpmine.c for editor

14 years agoimported missing editor files from d1x
Bradley Bell [Sun, 19 Dec 2004 13:54:27 +0000 (13:54 +0000)]
imported missing editor files from d1x

14 years agoadded Makefile.am for ui
Bradley Bell [Sun, 19 Dec 2004 13:27:31 +0000 (13:27 +0000)]
added Makefile.am for ui

14 years agomoved unused/ui to ui
Bradley Bell [Sun, 19 Dec 2004 13:17:44 +0000 (13:17 +0000)]
moved unused/ui to ui

14 years agomoved unused/ui to ui
Bradley Bell [Sun, 19 Dec 2004 13:08:49 +0000 (13:08 +0000)]
moved unused/ui to ui

14 years agoreplace byte with sbyte
Bradley Bell [Sun, 19 Dec 2004 12:55:44 +0000 (12:55 +0000)]
replace byte with sbyte

14 years agoreplace byte with sbyte
Bradley Bell [Sun, 19 Dec 2004 12:29:11 +0000 (12:29 +0000)]
replace byte with sbyte

14 years agoreplace byte with sbyte
Bradley Bell [Sun, 19 Dec 2004 12:15:34 +0000 (12:15 +0000)]
replace byte with sbyte

14 years agoreplace byte with sbyte
Bradley Bell [Sun, 19 Dec 2004 11:06:38 +0000 (11:06 +0000)]
replace byte with sbyte

14 years agoreplace byte with sbyte
Bradley Bell [Sun, 19 Dec 2004 11:01:29 +0000 (11:01 +0000)]
replace byte with sbyte

14 years agoreplace byte with sbyte
Bradley Bell [Sun, 19 Dec 2004 11:00:32 +0000 (11:00 +0000)]
replace byte with sbyte

14 years agoreplace byte with sbyte
Bradley Bell [Sun, 19 Dec 2004 10:58:39 +0000 (10:58 +0000)]
replace byte with sbyte

14 years agoabort weapon fire if unable to create object
Bradley Bell [Sun, 19 Dec 2004 09:52:59 +0000 (09:52 +0000)]
abort weapon fire if unable to create object

14 years agoprototype for strdup with MPW
Bradley Bell [Sun, 19 Dec 2004 09:39:01 +0000 (09:39 +0000)]
prototype for strdup with MPW

14 years agoallocate mission filenames dynamically
Bradley Bell [Fri, 17 Dec 2004 14:31:18 +0000 (14:31 +0000)]
allocate mission filenames dynamically

14 years agoallocate mission filenames dynamically
Bradley Bell [Fri, 17 Dec 2004 14:28:41 +0000 (14:28 +0000)]
allocate mission filenames dynamically

14 years agofix MPW compiler errors
Bradley Bell [Fri, 17 Dec 2004 14:17:03 +0000 (14:17 +0000)]
fix MPW compiler errors

14 years agocompile as a classic powerpc app in MPW
Bradley Bell [Fri, 17 Dec 2004 14:06:14 +0000 (14:06 +0000)]
compile as a classic powerpc app in MPW

14 years agoImplement strdup for MPW
Bradley Bell [Fri, 17 Dec 2004 14:02:54 +0000 (14:02 +0000)]
Implement strdup for MPW

14 years agofix compiler errors in MPW w/o OpenGL
Bradley Bell [Fri, 17 Dec 2004 13:42:11 +0000 (13:42 +0000)]
fix compiler errors in MPW w/o OpenGL

14 years agoforce gr_update() so screens always show in OpenGL
Bradley Bell [Fri, 17 Dec 2004 13:32:50 +0000 (13:32 +0000)]
force gr_update() so screens always show in OpenGL

14 years agoadded fast save
Bradley Bell [Fri, 17 Dec 2004 13:17:46 +0000 (13:17 +0000)]
added fast save

14 years agoopen autosave file for writing, not reading
Bradley Bell [Fri, 17 Dec 2004 09:16:59 +0000 (09:16 +0000)]
open autosave file for writing, not reading

14 years agoPrint only mildly interesting messages to stderr.txt. (revert earlier carbon changes)
Bradley Bell [Tue, 7 Dec 2004 22:37:55 +0000 (22:37 +0000)]
Print only mildly interesting messages to stderr.txt. (revert earlier carbon changes)

14 years agoInitialise the dataptr member correctly.
Bradley Bell [Tue, 7 Dec 2004 22:26:01 +0000 (22:26 +0000)]
Initialise the dataptr member correctly.

14 years agoremove misc/d_io.c
Martin Schaffner [Sun, 5 Dec 2004 12:46:59 +0000 (12:46 +0000)]
remove misc/d_io.c

14 years agogetRealPath uses the write directory if it can't get the real directory
Bradley Bell [Sun, 5 Dec 2004 10:56:32 +0000 (10:56 +0000)]
getRealPath uses the write directory if it can't get the real directory

14 years agouse PATH_MAX for hog pathname, ensure correct translation of path separators
Bradley Bell [Sat, 4 Dec 2004 04:07:16 +0000 (04:07 +0000)]
use PATH_MAX for hog pathname, ensure correct translation of path separators

14 years agoset builtin_hogsize to 0 for the Descent 1 built-in mission
Bradley Bell [Sat, 4 Dec 2004 04:03:10 +0000 (04:03 +0000)]
set builtin_hogsize to 0 for the Descent 1 built-in mission

14 years agoifix stricmp and strnicmp
Martin Schaffner [Fri, 3 Dec 2004 18:39:20 +0000 (18:39 +0000)]
ifix stricmp and strnicmp

14 years agodon't die if title screens not found
Bradley Bell [Fri, 3 Dec 2004 10:39:49 +0000 (10:39 +0000)]
don't die if title screens not found

14 years agodisable call to reset_cockpit() which was causing the 'letterbox' bug
Bradley Bell [Fri, 3 Dec 2004 10:06:22 +0000 (10:06 +0000)]
disable call to reset_cockpit() which was causing the 'letterbox' bug

14 years agouse sprintf in PHYSFSX_getRealPath() because I couldn't figure out why the previous...
Bradley Bell [Fri, 3 Dec 2004 07:29:32 +0000 (07:29 +0000)]
use sprintf in PHYSFSX_getRealPath() because I couldn't figure out why the previous code kept segfaulting under linux.

14 years agorequire PhysicsFS header and library
Martin Schaffner [Thu, 2 Dec 2004 18:30:54 +0000 (18:30 +0000)]
require PhysicsFS header and library

14 years agoremove mission list from global memory
Martin Schaffner [Thu, 2 Dec 2004 16:50:20 +0000 (16:50 +0000)]
remove mission list from global memory

14 years agopass individual mission around instead of whole list
Martin Schaffner [Thu, 2 Dec 2004 16:46:33 +0000 (16:46 +0000)]
pass individual mission around instead of whole list

14 years agoset builtin_hogsize for non-built-in missions
Martin Schaffner [Thu, 2 Dec 2004 16:41:54 +0000 (16:41 +0000)]
set builtin_hogsize for non-built-in missions

14 years agofix build on Carbon by adding digiobj.c
Martin Schaffner [Thu, 2 Dec 2004 16:32:42 +0000 (16:32 +0000)]
fix build on Carbon by adding digiobj.c

14 years agofix cfile bugs from recent changes
Martin Schaffner [Thu, 2 Dec 2004 16:27:29 +0000 (16:27 +0000)]
fix cfile bugs from recent changes

14 years agofix RELEASE build, make sure path separator gets added to hogdir
Bradley Bell [Thu, 2 Dec 2004 09:48:57 +0000 (09:48 +0000)]
fix RELEASE build, make sure path separator gets added to hogdir

14 years agoUpdated MSVC build, now uses dynamic opengl loading
Bradley Bell [Thu, 2 Dec 2004 08:52:59 +0000 (08:52 +0000)]
Updated MSVC build, now uses dynamic opengl loading

14 years agoMake cfopen into an inline, where a read buffer is set up. This speeds up loading...
Bradley Bell [Wed, 1 Dec 2004 13:01:00 +0000 (13:01 +0000)]
Make cfopen into an inline, where a read buffer is set up.  This speeds up loading significantly.

14 years agoadd PhysicsFS to the required 'tools' in README, and instructions for building in...
Bradley Bell [Wed, 1 Dec 2004 12:54:15 +0000 (12:54 +0000)]
add PhysicsFS to the required 'tools' in README, and instructions for building in MPW.

14 years agoDon't compile cfile.c on Mac OS 9.
Bradley Bell [Wed, 1 Dec 2004 12:52:02 +0000 (12:52 +0000)]
Don't compile cfile.c on Mac OS 9.

14 years agomerged physfs branch
Bradley Bell [Wed, 1 Dec 2004 12:48:13 +0000 (12:48 +0000)]
merged physfs branch

14 years agoAssign result of cfilelength to an int, MPW doesn't like switches of long longs
Bradley Bell [Wed, 1 Dec 2004 08:24:55 +0000 (08:24 +0000)]
Assign result of cfilelength to an int, MPW doesn't like switches of long longs

14 years agoGet rid of MIN redefinition.
Bradley Bell [Wed, 1 Dec 2004 06:57:28 +0000 (06:57 +0000)]
Get rid of MIN redefinition.

14 years agoDon't use D2XFolder, because the userdir can now be specified in Mac OS 9. Putting...
Bradley Bell [Wed, 1 Dec 2004 06:42:13 +0000 (06:42 +0000)]
Don't use D2XFolder, because the userdir can now be specified in Mac OS 9.  Putting it in the source code folder is more convenient.  Turn debugging on.  Don't compile old files, compile new ones.  Add the PhysicsFS library.

14 years agoadded stuff to .cvsignore
Bradley Bell [Wed, 1 Dec 2004 05:53:22 +0000 (05:53 +0000)]
added stuff to .cvsignore

14 years agokludge to keep from hanging on MinGW
Bradley Bell [Mon, 29 Nov 2004 08:01:47 +0000 (08:01 +0000)]
kludge to keep from hanging on MinGW

14 years agouse d2src system for persistent sounds
Bradley Bell [Mon, 29 Nov 2004 07:34:27 +0000 (07:34 +0000)]
use d2src system for persistent sounds

14 years agooriginal prototype in d2src is wrong, I guess
Bradley Bell [Mon, 29 Nov 2004 06:09:06 +0000 (06:09 +0000)]
original prototype in d2src is wrong, I guess

14 years agoripped object stuff out of digi.c, now using digiobj.c. get rid of a bunch of kludges...
Bradley Bell [Mon, 29 Nov 2004 05:25:58 +0000 (05:25 +0000)]
ripped object stuff out of digi.c, now using digiobj.c. get rid of a bunch of kludges, sound should be more true to original game now

14 years agoput sdl.m4 in acinclude.m4, to make autogen simpler
Bradley Bell [Sun, 28 Nov 2004 23:42:38 +0000 (23:42 +0000)]
put sdl.m4 in acinclude.m4, to make autogen simpler

14 years agoadded function to properly decode multi-line strings
Bradley Bell [Sun, 28 Nov 2004 07:32:12 +0000 (07:32 +0000)]
added function to properly decode multi-line strings

14 years agoenabled midi on win32
Bradley Bell [Sun, 28 Nov 2004 05:16:38 +0000 (05:16 +0000)]
enabled midi on win32

14 years agoformatting
Bradley Bell [Sat, 27 Nov 2004 12:34:44 +0000 (12:34 +0000)]
formatting

14 years agobetter fix for model data freeing bug
Bradley Bell [Sat, 27 Nov 2004 12:28:10 +0000 (12:28 +0000)]
better fix for model data freeing bug

14 years agoenable logo screens for shareware/oem
Bradley Bell [Sat, 27 Nov 2004 11:55:10 +0000 (11:55 +0000)]
enable logo screens for shareware/oem

14 years agofix d1 briefing glitches
Bradley Bell [Sat, 27 Nov 2004 05:10:33 +0000 (05:10 +0000)]
fix d1 briefing glitches

14 years agofree up cpu by not calling timer_delay so many times
Bradley Bell [Sat, 27 Nov 2004 02:05:57 +0000 (02:05 +0000)]
free up cpu by not calling timer_delay so many times

14 years agoreduce flickering in credits w/opengl
Bradley Bell [Fri, 26 Nov 2004 10:08:34 +0000 (10:08 +0000)]
reduce flickering in credits w/opengl

14 years agodisable Assert so the credits work in opengl (gl doesn't care if it draws offscreen...
Bradley Bell [Fri, 26 Nov 2004 09:50:32 +0000 (09:50 +0000)]
disable Assert so the credits work in opengl (gl doesn't care if it draws offscreen, I guess)

14 years agodisable Assert so the credits work in opengl (gl doesn't care if it draws offscreen...
Bradley Bell [Fri, 26 Nov 2004 09:48:28 +0000 (09:48 +0000)]
disable Assert so the credits work in opengl (gl doesn't care if it draws offscreen, I guess)

14 years agoenable briefing screens for mac shareware
Bradley Bell [Fri, 26 Nov 2004 09:45:29 +0000 (09:45 +0000)]
enable briefing screens for mac shareware

15 years agofixed opengl menu font bug, caused by doing arithmetic on signed chars.
Bradley Bell [Thu, 25 Nov 2004 11:52:27 +0000 (11:52 +0000)]
fixed opengl menu font bug, caused by doing arithmetic on signed chars.

15 years agofixed opengl menu font bug, caused by doing arithmetic on signed chars.
Bradley Bell [Thu, 25 Nov 2004 11:51:14 +0000 (11:51 +0000)]
fixed opengl menu font bug, caused by doing arithmetic on signed chars.

15 years agoget rid of clipping in ogl_internal_string, causes garbage on windows for some reason.
Bradley Bell [Thu, 25 Nov 2004 09:52:53 +0000 (09:52 +0000)]
get rid of clipping in ogl_internal_string, causes garbage on windows for some reason.

15 years agodepend on libsdl1.2-dev instead of libsdl-dev
Bradley Bell [Wed, 24 Nov 2004 07:45:33 +0000 (07:45 +0000)]
depend on libsdl1.2-dev instead of libsdl-dev

15 years agoFix sdl joystick axis problem, all arch use global variable joy_num_axes
Bradley Bell [Tue, 23 Nov 2004 00:16:10 +0000 (00:16 +0000)]
Fix sdl joystick axis problem, all arch use global variable joy_num_axes

15 years agoFix sdl joystick axis problem, all arch use global variable joy_num_axes
Bradley Bell [Mon, 22 Nov 2004 23:32:54 +0000 (23:32 +0000)]
Fix sdl joystick axis problem, all arch use global variable joy_num_axes

15 years agodon't Int3() every time explosions don't look best
Martin Schaffner [Fri, 19 Nov 2004 19:18:42 +0000 (19:18 +0000)]
don't Int3() every time explosions don't look best

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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

15 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

15 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

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

15 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

15 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

15 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

15 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

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

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

15 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)

15 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

15 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

15 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

15 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

15 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: ----------------------------------------------------------------------

15 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

15 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