]> icculus.org git repositories - btb/d2x.git/log
btb/d2x.git
9 years agouse hash for cvar list
Bradley Bell [Sun, 22 Feb 2015 02:42:59 +0000 (18:42 -0800)]
use hash for cvar list

9 years agodon't modify hash key string
Bradley Bell [Sun, 22 Feb 2015 02:42:42 +0000 (18:42 -0800)]
don't modify hash key string

9 years agoimplement play cmd
Bradley Bell [Sun, 22 Feb 2015 00:44:45 +0000 (16:44 -0800)]
implement play cmd

9 years agounused
Bradley Bell [Sat, 21 Feb 2015 23:23:21 +0000 (15:23 -0800)]
unused

9 years agosimplify wowie zowie cheat
Bradley Bell [Sat, 21 Feb 2015 22:38:35 +0000 (14:38 -0800)]
simplify wowie zowie cheat

9 years agoEnable D2 shareware cheats
Bradley Bell [Sat, 21 Feb 2015 21:08:02 +0000 (13:08 -0800)]
Enable D2 shareware cheats

9 years agoimplement quit cmd
Bradley Bell [Sat, 21 Feb 2015 10:47:25 +0000 (02:47 -0800)]
implement quit cmd

9 years agoimplement kill cmd
Bradley Bell [Sat, 21 Feb 2015 10:40:31 +0000 (02:40 -0800)]
implement kill cmd

9 years agoMake pletch<nnn> cheat work, slight refactor
Bradley Bell [Sat, 21 Feb 2015 09:22:51 +0000 (01:22 -0800)]
Make pletch<nnn> cheat work, slight refactor

9 years agoD1 cheats only give 100% energy and shield
Bradley Bell [Sat, 21 Feb 2015 08:51:11 +0000 (00:51 -0800)]
D1 cheats only give 100% energy and shield

9 years agoEnable D1 cheats
Bradley Bell [Sat, 21 Feb 2015 03:20:19 +0000 (19:20 -0800)]
Enable D1 cheats

9 years agomake cheats console cmds, get rid of crypt and simplify
Bradley Bell [Fri, 20 Feb 2015 23:47:19 +0000 (15:47 -0800)]
make cheats console cmds, get rid of crypt and simplify

9 years agoSave resolution X and Y instead of legacy display mode
Bradley Bell [Fri, 20 Feb 2015 00:13:15 +0000 (16:13 -0800)]
Save resolution X and Y instead of legacy display mode

9 years agoRevert "fix savegame thumbnail saving in OGL (d1x r1.6)"
Bradley Bell [Fri, 20 Feb 2015 07:54:51 +0000 (23:54 -0800)]
Revert "fix savegame thumbnail saving in OGL (d1x r1.6)"

This reverts commit d1e1ba65ac6d09dfdc88a834f72a8a3a6dd52e5d.

9 years agoRevert "simplify opengl save screenshot"
Bradley Bell [Fri, 20 Feb 2015 07:50:32 +0000 (23:50 -0800)]
Revert "simplify opengl save screenshot"

This reverts commit ee9b251ab005461b47d4c004fd52e2eda46e46e0.

9 years agoArchive MenuGameres and AutomapGameres
Bradley Bell [Thu, 19 Feb 2015 23:51:45 +0000 (15:51 -0800)]
Archive MenuGameres and AutomapGameres

9 years agoAdd D1_MISSION_HOGSIZE2 to load_mission_d1 cases
Kp [Sun, 15 Feb 2015 17:24:55 +0000 (17:24 +0000)]
Add D1_MISSION_HOGSIZE2 to load_mission_d1 cases

9 years agoAdded support for another egistered D1 HOG with different patching order... damn...
zico [Mon, 19 May 2008 12:45:33 +0000 (12:45 +0000)]
Added support for another egistered D1 HOG with different patching order... damn you PARALLAX

9 years agoUse sizeof for bounds.
Bradley Bell [Mon, 16 Feb 2015 02:18:03 +0000 (18:18 -0800)]
Use sizeof for bounds.
Fix incorrect bounds for some strncat calls.

9 years agoEliminate unnecessary casts
Bradley Bell [Mon, 16 Feb 2015 06:21:30 +0000 (22:21 -0800)]
Eliminate unnecessary casts

9 years agoimplement toggleconsole, with default bind `, hard code shift-esc to open/close
Bradley Bell [Sat, 14 Feb 2015 00:34:03 +0000 (16:34 -0800)]
implement toggleconsole, with default bind `, hard code shift-esc to open/close

9 years agoformatting
Bradley Bell [Fri, 13 Feb 2015 02:14:03 +0000 (18:14 -0800)]
formatting

9 years agoremove unused function
Bradley Bell [Fri, 13 Feb 2015 07:27:22 +0000 (23:27 -0800)]
remove unused function

9 years agodon't mess around with void pointers
Bradley Bell [Fri, 13 Feb 2015 07:15:34 +0000 (23:15 -0800)]
don't mess around with void pointers

9 years agouse const for cmd name and help text
Bradley Bell [Thu, 12 Feb 2015 07:38:36 +0000 (23:38 -0800)]
use const for cmd name and help text

9 years agomiscellaneous fixes
Bradley Bell [Thu, 12 Feb 2015 06:34:18 +0000 (22:34 -0800)]
miscellaneous fixes

9 years agosimplify help system
Bradley Bell [Thu, 12 Feb 2015 01:13:33 +0000 (17:13 -0800)]
simplify help system

9 years agoformatting
Bradley Bell [Wed, 11 Feb 2015 23:41:55 +0000 (15:41 -0800)]
formatting

9 years agodynamically allocate history
Bradley Bell [Wed, 11 Feb 2015 00:32:55 +0000 (16:32 -0800)]
dynamically allocate history

9 years agocleanup
Bradley Bell [Wed, 11 Feb 2015 00:17:25 +0000 (16:17 -0800)]
cleanup

9 years agounused
Bradley Bell [Tue, 10 Feb 2015 23:46:15 +0000 (15:46 -0800)]
unused

9 years agomake static
Bradley Bell [Tue, 10 Feb 2015 23:12:43 +0000 (15:12 -0800)]
make static

9 years agofix up console key handler
Bradley Bell [Tue, 10 Feb 2015 23:09:01 +0000 (15:09 -0800)]
fix up console key handler

9 years agomove ins/del logic to cli_add_character
Bradley Bell [Tue, 10 Feb 2015 22:46:57 +0000 (14:46 -0800)]
move ins/del logic to cli_add_character

9 years agoclean up names
Bradley Bell [Tue, 10 Feb 2015 09:50:09 +0000 (01:50 -0800)]
clean up names

9 years agobetter width calculation
Bradley Bell [Tue, 10 Feb 2015 09:28:16 +0000 (01:28 -0800)]
better width calculation

9 years agomore unused stuff
Bradley Bell [Tue, 10 Feb 2015 09:16:27 +0000 (01:16 -0800)]
more unused stuff

9 years agoget rid of unused alpha, font color stuff
Bradley Bell [Tue, 10 Feb 2015 09:13:54 +0000 (01:13 -0800)]
get rid of unused alpha, font color stuff

9 years agosplit console command-line interface into separate module
Bradley Bell [Tue, 10 Feb 2015 09:03:37 +0000 (01:03 -0800)]
split console command-line interface into separate module

9 years agoformatting
Bradley Bell [Tue, 10 Feb 2015 06:27:35 +0000 (22:27 -0800)]
formatting

9 years agoget rid of ConsoleInformation struct
Bradley Bell [Tue, 10 Feb 2015 04:57:41 +0000 (20:57 -0800)]
get rid of ConsoleInformation struct

9 years agobase scaling on actual bitmap size
Bradley Bell [Mon, 9 Feb 2015 05:50:12 +0000 (21:50 -0800)]
base scaling on actual bitmap size

9 years agoformatting
Bradley Bell [Mon, 9 Feb 2015 05:49:00 +0000 (21:49 -0800)]
formatting

9 years agoformatting
Bradley Bell [Mon, 9 Feb 2015 01:16:42 +0000 (17:16 -0800)]
formatting

9 years agopreserve aspect of briefing frame and robot canvas.
Bradley Bell [Sun, 8 Feb 2015 00:12:54 +0000 (16:12 -0800)]
preserve aspect of briefing frame and robot canvas.
constrain by scaled height.
robot still renders according to screen aspect.

9 years agoformatting
Bradley Bell [Sat, 7 Feb 2015 22:37:34 +0000 (14:37 -0800)]
formatting

9 years agocenter kmatrix screens
Bradley Bell [Sat, 7 Feb 2015 21:51:07 +0000 (13:51 -0800)]
center kmatrix screens

9 years agoconstrain robot movies by height, don't do vertical recenter
Bradley Bell [Sat, 7 Feb 2015 09:31:23 +0000 (01:31 -0800)]
constrain robot movies by height, don't do vertical recenter

9 years agoproperly init robot movies
Bradley Bell [Sat, 7 Feb 2015 09:26:42 +0000 (01:26 -0800)]
properly init robot movies

9 years agouse cvar for automap_use_game_res
Bradley Bell [Sat, 7 Feb 2015 00:21:26 +0000 (16:21 -0800)]
use cvar for automap_use_game_res

9 years agosimplify redbook track selection, allow d1 redbook briefing, endgame, etc tracks...
Bradley Bell [Thu, 5 Feb 2015 23:07:18 +0000 (15:07 -0800)]
simplify redbook track selection, allow d1 redbook briefing, endgame, etc tracks to play if available

9 years agoonly free if malloced
Bradley Bell [Thu, 5 Feb 2015 09:32:22 +0000 (01:32 -0800)]
only free if malloced

9 years agofix makefiles
Bradley Bell [Wed, 4 Feb 2015 10:46:26 +0000 (02:46 -0800)]
fix makefiles

9 years agouse bigger font for 'Vertigo' text, align to canvas size
Bradley Bell [Wed, 4 Feb 2015 10:16:21 +0000 (02:16 -0800)]
use bigger font for 'Vertigo' text, align to canvas size

9 years agocenter kconfig screens with a sub canvas
Bradley Bell [Wed, 4 Feb 2015 09:18:50 +0000 (01:18 -0800)]
center kconfig screens with a sub canvas

9 years agomake nm_restore_background work with rescaled backgrounds (from d1x)
Bradley Bell [Wed, 4 Feb 2015 08:51:02 +0000 (00:51 -0800)]
make nm_restore_background work with rescaled backgrounds (from d1x)

9 years agoMenuHires now just a macro
Bradley Bell [Wed, 4 Feb 2015 08:04:12 +0000 (00:04 -0800)]
MenuHires now just a macro

9 years agoreinitialize screen mode after switching res
Bradley Bell [Wed, 4 Feb 2015 07:35:28 +0000 (23:35 -0800)]
reinitialize screen mode after switching res

9 years agomove select_tmap to new init function, also selectable via console command
Bradley Bell [Tue, 3 Feb 2015 23:34:33 +0000 (15:34 -0800)]
move select_tmap to new init function, also selectable via console command

9 years agorename to avoid confusion with Screen_mode
Bradley Bell [Tue, 3 Feb 2015 09:05:55 +0000 (01:05 -0800)]
rename to avoid confusion with Screen_mode

9 years agocheck for low res modes using correct macro
Bradley Bell [Tue, 3 Feb 2015 08:05:11 +0000 (00:05 -0800)]
check for low res modes using correct macro

9 years agoscale credits screen, center credit text and increase lines to match screen size
Bradley Bell [Tue, 3 Feb 2015 04:17:48 +0000 (20:17 -0800)]
scale credits screen, center credit text and increase lines to match screen size

9 years agomake scale_line available to use, rename it and show_fullscr for consistency
Bradley Bell [Tue, 3 Feb 2015 04:15:35 +0000 (20:15 -0800)]
make scale_line available to use, rename it and show_fullscr for consistency

9 years agostring may be clipped, use gr_bitmapm
Bradley Bell [Tue, 3 Feb 2015 02:40:59 +0000 (18:40 -0800)]
string may be clipped, use gr_bitmapm

9 years agokeep hi scores centered
Bradley Bell [Mon, 2 Feb 2015 10:40:15 +0000 (02:40 -0800)]
keep hi scores centered

9 years agoimplement scaled menu background, from d1x
Bradley Bell [Mon, 2 Feb 2015 10:39:43 +0000 (02:39 -0800)]
implement scaled menu background, from d1x

9 years agopreserve movie aspect ratio, keep centered vertically
Bradley Bell [Mon, 2 Feb 2015 08:32:42 +0000 (00:32 -0800)]
preserve movie aspect ratio, keep centered vertically

9 years agoscale movie resolution if necessary
Bradley Bell [Mon, 2 Feb 2015 07:03:11 +0000 (23:03 -0800)]
scale movie resolution if necessary

9 years agouse game res for movies if MenuGameres is set
Bradley Bell [Mon, 2 Feb 2015 06:12:43 +0000 (22:12 -0800)]
use game res for movies if MenuGameres is set

9 years agouse uint32_t for screen modes
Bradley Bell [Mon, 2 Feb 2015 06:10:36 +0000 (22:10 -0800)]
use uint32_t for screen modes

9 years agoremove d1x-ism Game_screen_mode, which basically duplicates Current_display_mode
Bradley Bell [Mon, 2 Feb 2015 05:37:39 +0000 (21:37 -0800)]
remove d1x-ism Game_screen_mode, which basically duplicates Current_display_mode

9 years agoimplement menu_gameres, using cvar
Bradley Bell [Mon, 2 Feb 2015 04:55:43 +0000 (20:55 -0800)]
implement menu_gameres, using cvar

9 years agodelete duplicate define
Bradley Bell [Mon, 2 Feb 2015 03:31:25 +0000 (19:31 -0800)]
delete duplicate define

9 years agodon't grab mouse if mouse not enabled
Bradley Bell [Mon, 2 Feb 2015 01:45:46 +0000 (17:45 -0800)]
don't grab mouse if mouse not enabled

9 years agoMake OGL_VIEWPORT static inline
Kp [Sun, 4 Aug 2013 22:24:33 +0000 (22:24 +0000)]
Make OGL_VIEWPORT static inline

9 years agoformatting
Bradley Bell [Sun, 1 Feb 2015 09:57:51 +0000 (01:57 -0800)]
formatting

9 years agoorder forms
Bradley Bell [Sun, 1 Feb 2015 08:59:13 +0000 (00:59 -0800)]
order forms

9 years agoremove redundant prototypes
Bradley Bell [Sun, 1 Feb 2015 08:57:38 +0000 (00:57 -0800)]
remove redundant prototypes

9 years agoremove unnecessary ifdefs
Bradley Bell [Sun, 1 Feb 2015 08:55:10 +0000 (00:55 -0800)]
remove unnecessary ifdefs

9 years agoformatting
Bradley Bell [Sun, 1 Feb 2015 08:00:49 +0000 (00:00 -0800)]
formatting

9 years agocorrect defines for d1 builtins
Bradley Bell [Sun, 1 Feb 2015 07:53:05 +0000 (23:53 -0800)]
correct defines for d1 builtins

9 years agoremove unnecessary canvas switching
Bradley Bell [Sun, 1 Feb 2015 07:50:26 +0000 (23:50 -0800)]
remove unnecessary canvas switching

9 years agoenable d1 endgame screens
Bradley Bell [Sun, 1 Feb 2015 07:49:26 +0000 (23:49 -0800)]
enable d1 endgame screens

9 years agodefine constants for D1 bosses
Bradley Bell [Sun, 1 Feb 2015 03:12:30 +0000 (19:12 -0800)]
define constants for D1 bosses

9 years agocorrectly handle D1 bosses
Bradley Bell [Sat, 31 Jan 2015 03:32:22 +0000 (19:32 -0800)]
correctly handle D1 bosses

9 years agomake sure we don't strcpy to ourself
Bradley Bell [Sat, 31 Jan 2015 03:30:09 +0000 (19:30 -0800)]
make sure we don't strcpy to ourself

9 years agoplay endlevel song during rendered endlevel sequence
Bradley Bell [Sat, 31 Jan 2015 02:31:05 +0000 (18:31 -0800)]
play endlevel song during rendered endlevel sequence

9 years agoRAND_MAX -> D_RAND_MAX
Bradley Bell [Sat, 31 Jan 2015 02:30:00 +0000 (18:30 -0800)]
RAND_MAX -> D_RAND_MAX

9 years agoplay briefing song instead of hum and chatter in D1 briefings
Bradley Bell [Sat, 31 Jan 2015 00:25:13 +0000 (16:25 -0800)]
play briefing song instead of hum and chatter in D1 briefings

9 years agodefault to current song
Bradley Bell [Fri, 30 Jan 2015 23:46:28 +0000 (15:46 -0800)]
default to current song

9 years agoenable song menu
Bradley Bell [Fri, 30 Jan 2015 23:30:26 +0000 (15:30 -0800)]
enable song menu

9 years agogracefully handle missing midi files
Bradley Bell [Fri, 30 Jan 2015 23:30:14 +0000 (15:30 -0800)]
gracefully handle missing midi files

9 years agoplay D1 midi for D1 missions, by allowing descent.hog to override the builtin hog...
Bradley Bell [Fri, 30 Jan 2015 23:18:22 +0000 (15:18 -0800)]
play D1 midi for D1 missions, by allowing descent.hog to override the builtin hog, and reinitializing songs on mission change

9 years agoformatting, remove some obsolete stuff
Bradley Bell [Fri, 30 Jan 2015 22:14:56 +0000 (14:14 -0800)]
formatting, remove some obsolete stuff

9 years agoget midi working with sdl_mixer and the hmp2midi from d2x-rebirth
Bradley Bell [Fri, 30 Jan 2015 10:13:43 +0000 (02:13 -0800)]
get midi working with sdl_mixer and the hmp2midi from d2x-rebirth

9 years agoUse MALLOC for hmp
Kp [Sat, 24 Nov 2012 20:14:03 +0000 (20:14 +0000)]
Use MALLOC for hmp

9 years agoMade hmp->tempo endian-safe
zico [Thu, 27 Jun 2013 10:08:58 +0000 (12:08 +0200)]
Made hmp->tempo endian-safe

9 years agoMade hmp code actually read tempo. Due to missing documentation of the format I can...
zico [Mon, 10 Jun 2013 14:34:52 +0000 (16:34 +0200)]
Made hmp code actually read tempo. Due to missing documentation of the format I can only guess it's a 4 bit int

9 years agoInstead of writing converted MIDI to file, write to buffer so it can be played directly
zico [Fri, 29 Oct 2010 15:40:42 +0000 (17:40 +0200)]
Instead of writing converted MIDI to file, write to buffer so it can be played directly

9 years agoFixing bug in MIDI header - format was written in size of int instead of short
zico [Tue, 27 Jul 2010 20:16:39 +0000 (20:16 +0000)]
Fixing bug in MIDI header - format was written in size of int instead of short