btb/d2x.git
14 years agoget rid of compiler warnings
Bradley Bell [Wed, 16 Mar 2005 20:47:20 +0000 (20:47 +0000)]
get rid of compiler warnings

14 years agoDisabled shading of flat (non-textured) polygons. Fixes laser and plasma lighting...
Bradley Bell [Wed, 16 Mar 2005 01:56:24 +0000 (01:56 +0000)]
Disabled shading of flat (non-textured) polygons. Fixes laser and plasma lighting bug, hopefully doesn't break anything else.

14 years agoFix crash if Num_walls=0
Bradley Bell [Tue, 15 Mar 2005 21:16:32 +0000 (21:16 +0000)]
Fix crash if Num_walls=0

14 years agoenable editor in unix-style builds
Bradley Bell [Sat, 12 Mar 2005 23:26:48 +0000 (23:26 +0000)]
enable editor in unix-style builds

14 years agocould check reactor model num, don't check reactor object shields (not used anyway...
Chris Taylor [Sat, 12 Mar 2005 07:50:53 +0000 (07:50 +0000)]
could check reactor model num, don't check reactor object shields (not used anyway, it's stored/calculated elsewhere)

14 years agocheck the uvs after they're assigned, not before
Chris Taylor [Sun, 6 Mar 2005 08:25:52 +0000 (08:25 +0000)]
check the uvs after they're assigned, not before

14 years agoload the descent 1 color palette when NDEBUG is defined
Chris Taylor [Sun, 6 Mar 2005 04:26:37 +0000 (04:26 +0000)]
load the descent 1 color palette when NDEBUG is defined

14 years agouse PhysicsFS in file.c, involves modifying the listbox so it can use an array of...
Chris Taylor [Sat, 5 Mar 2005 09:30:26 +0000 (09:30 +0000)]
use PhysicsFS in file.c, involves modifying the listbox so it can use an array of string pointers

14 years agono error message if changing directory fails (PhysicsFS uses search paths, not a...
Chris Taylor [Sat, 5 Mar 2005 09:18:46 +0000 (09:18 +0000)]
no error message if changing directory fails (PhysicsFS uses search paths, not a current directory)

14 years agouse qsort and file_sort_func instead of file_sort
Chris Taylor [Sat, 5 Mar 2005 09:14:59 +0000 (09:14 +0000)]
use qsort and file_sort_func instead of file_sort

14 years agono critical error handler (not used by PhysicsFS)
Chris Taylor [Sun, 27 Feb 2005 05:33:27 +0000 (05:33 +0000)]
no critical error handler (not used by PhysicsFS)

14 years agocall gr_update in event loops
Chris Taylor [Sun, 27 Feb 2005 03:55:46 +0000 (03:55 +0000)]
call gr_update in event loops

14 years agouse cfile to read the menubar file MED.MNU
Chris Taylor [Sat, 26 Feb 2005 11:27:42 +0000 (11:27 +0000)]
use cfile to read the menubar file MED.MNU

14 years agohandle characters > 128 correctly
Chris Taylor [Sat, 26 Feb 2005 11:17:01 +0000 (11:17 +0000)]
handle characters > 128 correctly

14 years agouse cfile for reading in keypad files
Chris Taylor [Sat, 26 Feb 2005 11:12:14 +0000 (11:12 +0000)]
use cfile for reading in keypad files

14 years agouse d_free instead of free
Chris Taylor [Sat, 26 Feb 2005 10:13:51 +0000 (10:13 +0000)]
use d_free instead of free

14 years agouse d_strdup instead of strdup
Chris Taylor [Sat, 26 Feb 2005 10:01:55 +0000 (10:01 +0000)]
use d_strdup instead of strdup

14 years agouse d_calloc instead of calloc
Chris Taylor [Sat, 26 Feb 2005 09:54:05 +0000 (09:54 +0000)]
use d_calloc instead of calloc

14 years agouse d_malloc instead of malloc
Chris Taylor [Sat, 26 Feb 2005 09:51:41 +0000 (09:51 +0000)]
use d_malloc instead of malloc

14 years agodetermine properly if 800x600 resolution is available
Chris Taylor [Sat, 26 Feb 2005 09:30:04 +0000 (09:30 +0000)]
determine properly if 800x600 resolution is available

14 years agoremove the need for BITMAPS.TBL, with EDITOR defined
Chris Taylor [Sat, 26 Feb 2005 07:04:47 +0000 (07:04 +0000)]
remove the need for BITMAPS.TBL, with EDITOR defined

14 years agoadd remove_trigger_num
Chris Taylor [Sat, 26 Feb 2005 06:25:37 +0000 (06:25 +0000)]
add remove_trigger_num

14 years agoconverted old changelog to "cvs log" format, so it can be manipulated with cvs2cl...
Bradley Bell [Sat, 26 Feb 2005 03:29:41 +0000 (03:29 +0000)]
converted old changelog to "cvs log" format, so it can be manipulated with cvs2cl and other tools.

14 years agoonly disable the keyboard for MS DOS
Chris Taylor [Sat, 26 Feb 2005 01:03:37 +0000 (01:03 +0000)]
only disable the keyboard for MS DOS

14 years agono unnecessarily including MS DOS headers
Chris Taylor [Sat, 26 Feb 2005 00:55:13 +0000 (00:55 +0000)]
no unnecessarily including MS DOS headers

14 years agono unnecessarily including MS DOS headers
Chris Taylor [Sat, 26 Feb 2005 00:47:08 +0000 (00:47 +0000)]
no unnecessarily including MS DOS headers

14 years agoclean up old changelog a little
Bradley Bell [Fri, 25 Feb 2005 21:53:01 +0000 (21:53 +0000)]
clean up old changelog a little

14 years agouse the Descent 2 definitions for maximum segments and vertices
Chris Taylor [Fri, 25 Feb 2005 14:55:49 +0000 (14:55 +0000)]
use the Descent 2 definitions for maximum segments and vertices

14 years agono defining OGL in conf.h
Chris Taylor [Fri, 25 Feb 2005 13:22:44 +0000 (13:22 +0000)]
no defining OGL in conf.h

14 years agomake add_missions_to_list recursive
Chris Taylor [Fri, 25 Feb 2005 12:46:24 +0000 (12:46 +0000)]
make add_missions_to_list recursive

14 years agoallow paths to be passed to read_mission_file
Chris Taylor [Fri, 25 Feb 2005 12:07:08 +0000 (12:07 +0000)]
allow paths to be passed to read_mission_file

14 years agorip out digiobj stuff, use d2src system for persistent sounds. Untested, of course.
Bradley Bell [Fri, 25 Feb 2005 10:49:48 +0000 (10:49 +0000)]
rip out digiobj stuff, use d2src system for persistent sounds. Untested, of course.

14 years agohandle briefing correctly for first add-on mission put in list
Chris Taylor [Fri, 25 Feb 2005 10:28:42 +0000 (10:28 +0000)]
handle briefing correctly for first add-on mission put in list

14 years agocheck properly whether there's a briefing
Chris Taylor [Fri, 25 Feb 2005 09:53:17 +0000 (09:53 +0000)]
check properly whether there's a briefing

14 years agoallow -notitles to work in shareware [and non-RELEASE] version too. (d1x r1.35)
Bradley Bell [Fri, 25 Feb 2005 07:19:33 +0000 (07:19 +0000)]
allow -notitles to work in shareware [and non-RELEASE] version too. (d1x r1.35)

14 years agoupdate to alsa 1.0 API. (d1x r1.3)
Bradley Bell [Fri, 25 Feb 2005 07:02:46 +0000 (07:02 +0000)]
update to alsa 1.0 API. (d1x r1.3)

14 years agorestore gamma ramp on exit since some drivers don't do it automatically (eg, ati...
Bradley Bell [Fri, 25 Feb 2005 06:31:53 +0000 (06:31 +0000)]
restore gamma ramp on exit since some drivers don't do it automatically (eg, ati's fglrx linux driver) (d1x r1.41)

14 years agodraw the bomb count in OpenGL, but not when a bomb is selected as a secondary weapon
Chris Taylor [Fri, 25 Feb 2005 06:24:52 +0000 (06:24 +0000)]
draw the bomb count in OpenGL, but not when a bomb is selected as a secondary weapon

14 years agodraw behind the shield number properly in OpenGL
Chris Taylor [Fri, 25 Feb 2005 06:16:57 +0000 (06:16 +0000)]
draw behind the shield number properly in OpenGL

14 years agodefine cfopen to be PHYSFSX_openReadBuffered
Chris Taylor [Fri, 25 Feb 2005 05:29:09 +0000 (05:29 +0000)]
define cfopen to be PHYSFSX_openReadBuffered

14 years agoactually use PHYSFSX_openRead/WriteBuffered
Chris Taylor [Fri, 25 Feb 2005 05:20:36 +0000 (05:20 +0000)]
actually use PHYSFSX_openRead/WriteBuffered

14 years agoinclude pstypes.h for PATH_MAX
Chris Taylor [Fri, 25 Feb 2005 04:25:58 +0000 (04:25 +0000)]
include pstypes.h for PATH_MAX

14 years agomake file copy similar to PHYSFSX_openReadBuffered
Chris Taylor [Fri, 25 Feb 2005 03:58:32 +0000 (03:58 +0000)]
make file copy similar to PHYSFSX_openReadBuffered

14 years agochange movie Warnings to con_printf, simplify other debug info.
Bradley Bell [Fri, 25 Feb 2005 03:35:42 +0000 (03:35 +0000)]
change movie Warnings to con_printf, simplify other debug info.

14 years agoAdd PHYSFSX_openReadBuffered and PHYSFSX_openWriteBuffered
Chris Taylor [Fri, 25 Feb 2005 02:02:22 +0000 (02:02 +0000)]
Add PHYSFSX_openReadBuffered and PHYSFSX_openWriteBuffered

14 years agobuild-dep on libphysfs-dev
Bradley Bell [Fri, 11 Feb 2005 22:16:40 +0000 (22:16 +0000)]
build-dep on libphysfs-dev

14 years agouse GLint for arb_max_textures
Bradley Bell [Fri, 11 Feb 2005 22:15:58 +0000 (22:15 +0000)]
use GLint for arb_max_textures

14 years ago*** empty log message ***
Bradley Bell [Fri, 11 Feb 2005 22:15:20 +0000 (22:15 +0000)]
*** empty log message ***

14 years agoadd internal.h to dist
Bradley Bell [Fri, 11 Feb 2005 22:01:50 +0000 (22:01 +0000)]
add internal.h to dist

14 years agoremove old files from dist
Bradley Bell [Fri, 11 Feb 2005 21:05:53 +0000 (21:05 +0000)]
remove old files from dist

14 years agoensure mission name is properly terminated
Bradley Bell [Wed, 26 Jan 2005 03:53:43 +0000 (03:53 +0000)]
ensure mission name is properly terminated

14 years agoif LVL can't be found, try filename that was passed
Martin Schaffner [Tue, 25 Jan 2005 21:58:23 +0000 (21:58 +0000)]
if LVL can't be found, try filename that was passed

14 years agocall bm_read_all even if EDITOR is defined
Martin Schaffner [Tue, 25 Jan 2005 21:53:41 +0000 (21:53 +0000)]
call bm_read_all even if EDITOR is defined

14 years agoremove variable New_segment (is now a macro)
Martin Schaffner [Tue, 25 Jan 2005 21:44:24 +0000 (21:44 +0000)]
remove variable New_segment (is now a macro)

14 years agospecify int type for state2_alt_down
Martin Schaffner [Tue, 25 Jan 2005 21:33:06 +0000 (21:33 +0000)]
specify int type for state2_alt_down

14 years agocomment out uses of mouse_set_limits and mouse_set_pos
Martin Schaffner [Tue, 25 Jan 2005 21:31:45 +0000 (21:31 +0000)]
comment out uses of mouse_set_limits and mouse_set_pos

14 years agouse unsigned char when comparing to > 127
Martin Schaffner [Tue, 25 Jan 2005 21:26:44 +0000 (21:26 +0000)]
use unsigned char when comparing to > 127

14 years agoclean up path/file length macros
Martin Schaffner [Tue, 25 Jan 2005 21:20:29 +0000 (21:20 +0000)]
clean up path/file length macros

14 years agos/128/PATH_MAX
Martin Schaffner [Tue, 25 Jan 2005 20:46:55 +0000 (20:46 +0000)]
s/128/PATH_MAX

14 years agoexternalize N_ObjBitmaps & remove_char, solve conflict
Martin Schaffner [Tue, 25 Jan 2005 20:02:58 +0000 (20:02 +0000)]
externalize N_ObjBitmaps & remove_char, solve conflict

14 years agoInstallErrorHandler() no longer exists, don't use it anymore
Martin Schaffner [Tue, 25 Jan 2005 19:57:40 +0000 (19:57 +0000)]
InstallErrorHandler() no longer exists, don't use it anymore

14 years agos/inputbox/Inputbox/
Martin Schaffner [Tue, 25 Jan 2005 19:48:10 +0000 (19:48 +0000)]
s/inputbox/Inputbox/

14 years agouse timer_get_fixed_seconds instead of TICKER macro
Martin Schaffner [Tue, 25 Jan 2005 19:44:27 +0000 (19:44 +0000)]
use timer_get_fixed_seconds instead of TICKER macro

14 years agomake ui_barbox_update return void
Martin Schaffner [Tue, 25 Jan 2005 19:40:04 +0000 (19:40 +0000)]
make ui_barbox_update return void

14 years agopass int*, not short* to gr_get_string_size
Martin Schaffner [Tue, 25 Jan 2005 19:37:59 +0000 (19:37 +0000)]
pass int*, not short* to gr_get_string_size

14 years agoinclude cntrlcen.h
Martin Schaffner [Tue, 25 Jan 2005 19:36:27 +0000 (19:36 +0000)]
include cntrlcen.h

14 years agouse wall_close_door_num, not wall_close_door
Martin Schaffner [Tue, 25 Jan 2005 19:34:50 +0000 (19:34 +0000)]
use wall_close_door_num, not wall_close_door

14 years agouse physfs instead of non-existing cflib.h
Martin Schaffner [Tue, 25 Jan 2005 19:31:56 +0000 (19:31 +0000)]
use physfs instead of non-existing cflib.h

14 years agoon Carbon, dynamically find and load the OpenGL library on carbon
Martin Schaffner [Tue, 25 Jan 2005 19:23:58 +0000 (19:23 +0000)]
on Carbon, dynamically find and load the OpenGL library on carbon

14 years agodon't try to set the removed follow_path
Martin Schaffner [Mon, 24 Jan 2005 22:26:06 +0000 (22:26 +0000)]
don't try to set the removed follow_path

14 years agoadd prototype for create_removable_wall
Martin Schaffner [Mon, 24 Jan 2005 22:24:10 +0000 (22:24 +0000)]
add prototype for create_removable_wall

14 years agodo texture replacement for any mission
Martin Schaffner [Mon, 24 Jan 2005 22:22:37 +0000 (22:22 +0000)]
do texture replacement for any mission

14 years agoinclude u_mem.h and pstypes.h instead of d1-style mem.h and types.h
Martin Schaffner [Mon, 24 Jan 2005 22:19:10 +0000 (22:19 +0000)]
include u_mem.h and pstypes.h instead of d1-style mem.h and types.h

14 years agoPass both arguments to render_frame
Martin Schaffner [Mon, 24 Jan 2005 22:13:50 +0000 (22:13 +0000)]
Pass both arguments to render_frame

14 years agomain/editor/med
Martin Schaffner [Mon, 24 Jan 2005 22:11:55 +0000 (22:11 +0000)]
main/editor/med

14 years agoremove unused variable "length"
Martin Schaffner [Mon, 24 Jan 2005 22:09:54 +0000 (22:09 +0000)]
remove unused variable "length"

14 years agoInclude strutil.h in func.c (for stricmp)
Martin Schaffner [Mon, 24 Jan 2005 22:07:43 +0000 (22:07 +0000)]
Include strutil.h in func.c (for stricmp)

14 years agochange curseg2p to Curseg2p
Martin Schaffner [Mon, 24 Jan 2005 22:05:14 +0000 (22:05 +0000)]
change curseg2p to Curseg2p

14 years agoonly include i86.h and malloc.h ifdef DO_MEMINFO
Martin Schaffner [Mon, 24 Jan 2005 21:59:35 +0000 (21:59 +0000)]
only include i86.h and malloc.h ifdef DO_MEMINFO

14 years agomove consts for WALL_IS_DOORWAY to header
Martin Schaffner [Mon, 24 Jan 2005 21:41:35 +0000 (21:41 +0000)]
move consts for WALL_IS_DOORWAY to header

14 years agodisable old hostage system in editor
Martin Schaffner [Mon, 24 Jan 2005 21:33:28 +0000 (21:33 +0000)]
disable old hostage system in editor

14 years agochange all functions in kfuncs.c to return int instead of void
Martin Schaffner [Mon, 24 Jan 2005 21:26:24 +0000 (21:26 +0000)]
change all functions in kfuncs.c to return int instead of void

14 years agofade ship and weapon gauge when appropriate
Martin Schaffner [Mon, 24 Jan 2005 21:20:40 +0000 (21:20 +0000)]
fade ship and weapon gauge when appropriate

14 years agobaptize the coefficients in vms_equation 'n'
Martin Schaffner [Mon, 24 Jan 2005 21:11:58 +0000 (21:11 +0000)]
baptize the coefficients in vms_equation 'n'

14 years agofix bug: some characters would not display because of signed/unsigned errors
Martin Schaffner [Mon, 24 Jan 2005 19:12:28 +0000 (19:12 +0000)]
fix bug: some characters would not display because of signed/unsigned errors

14 years agomake sure nocfile.h and cfile.h are never both included
Martin Schaffner [Sun, 23 Jan 2005 14:46:49 +0000 (14:46 +0000)]
make sure nocfile.h and cfile.h are never both included

14 years agochange cfopen to use buffers (speeding it up), and use cfopen instead of PHYSFS_openR...
Martin Schaffner [Sun, 23 Jan 2005 14:38:04 +0000 (14:38 +0000)]
change cfopen to use buffers (speeding it up), and use cfopen instead of PHYSFS_openRead/PHYSFS_openWrite where appropriate

14 years agodon't print OGL extensions, since this may crash for huge list of extensions
Martin Schaffner [Sun, 23 Jan 2005 13:48:35 +0000 (13:48 +0000)]
don't print OGL extensions, since this may crash for huge list of extensions

14 years agoredraw energy/afterburner gauges whenever necessary
Martin Schaffner [Sun, 23 Jan 2005 13:41:42 +0000 (13:41 +0000)]
redraw energy/afterburner gauges whenever necessary

14 years agoeven ifndef NETWORK do last level hack only on last level of built-in mission
Martin Schaffner [Sun, 23 Jan 2005 13:35:16 +0000 (13:35 +0000)]
even ifndef NETWORK do last level hack only on last level of built-in mission

14 years agofix bug #1676
Martin Schaffner [Mon, 10 Jan 2005 17:47:27 +0000 (17:47 +0000)]
fix bug #1676

14 years agomake automap fonts transparent
Bradley Bell [Sat, 8 Jan 2005 03:37:38 +0000 (03:37 +0000)]
make automap fonts transparent

14 years agofix problems with copying/deleting save files
Bradley Bell [Fri, 7 Jan 2005 22:34:33 +0000 (22:34 +0000)]
fix problems with copying/deleting save files

14 years agoIn Load Level, if there is no current mission, select one
Bradley Bell [Fri, 7 Jan 2005 21:58:42 +0000 (21:58 +0000)]
In Load Level, if there is no current mission, select one

14 years agoDraw ship before shields in HUD.
Bradley Bell [Thu, 6 Jan 2005 05:25:59 +0000 (05:25 +0000)]
Draw ship before shields in HUD.

14 years agoImplement fading in ogl_urect()
Bradley Bell [Thu, 6 Jan 2005 05:21:28 +0000 (05:21 +0000)]
Implement fading in ogl_urect()

14 years agoFree polymodel data before reloading ham file
Bradley Bell [Thu, 6 Jan 2005 03:59:32 +0000 (03:59 +0000)]
Free polymodel data before reloading ham file

14 years agoUse both ints with the robot producer flags.
Bradley Bell [Fri, 24 Dec 2004 05:55:56 +0000 (05:55 +0000)]
Use both ints with the robot producer flags.

14 years agoUse macros to use Segment2s when necessary.
Bradley Bell [Fri, 24 Dec 2004 05:17:09 +0000 (05:17 +0000)]
Use macros to use Segment2s when necessary.

14 years agofix occurrences of #ifdef __LINUX__
Bradley Bell [Tue, 21 Dec 2004 11:58:14 +0000 (11:58 +0000)]
fix occurrences of #ifdef __LINUX__