]> icculus.org git repositories - btb/d2x.git/log
btb/d2x.git
9 years agoremove redundant iff functions
Chris Taylor [Wed, 13 Feb 2008 11:46:49 +0000 (11:46 +0000)]
remove redundant iff functions

9 years agoClarify test against bit arithmetic.
Bradley Bell [Sat, 2 May 2015 00:53:49 +0000 (17:53 -0700)]
Clarify test against bit arithmetic.

Fixes: main/editor/eswitch.c:143:2: error: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ [-Werror=parentheses]
9 years agono kill cmd in RELEASE (for now?)
Bradley Bell [Sat, 2 May 2015 00:52:10 +0000 (17:52 -0700)]
no kill cmd in RELEASE (for now?)

9 years agoinclude conf.h
Bradley Bell [Sat, 2 May 2015 00:48:49 +0000 (17:48 -0700)]
include conf.h

Fixes: ./include/physfsx.h:118:26: error: use of undeclared identifier 'SHAREPATH'
9 years agoUse unsigned for counter
Bradley Bell [Sat, 2 May 2015 00:45:30 +0000 (17:45 -0700)]
Use unsigned for counter

Fixes: 2d/rle.c:602:5: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
9 years agoset travis language to c
Bradley Bell [Sat, 2 May 2015 00:35:28 +0000 (17:35 -0700)]
set travis language to c

9 years agofixed a bunch of compiler warnings
zico [Mon, 11 Jun 2007 09:06:14 +0000 (09:06 +0000)]
fixed a bunch of compiler warnings

9 years agomore travis builds
Bradley Bell [Sat, 2 May 2015 00:14:21 +0000 (17:14 -0700)]
more travis builds

9 years agoFixing possible string overflow while using KALI_PROCESS_NAME
zico [Fri, 11 Dec 2009 10:13:27 +0000 (10:13 +0000)]
Fixing possible string overflow while using KALI_PROCESS_NAME

9 years agoremove broken comparison
Bradley Bell [Sat, 25 Apr 2015 06:01:29 +0000 (23:01 -0700)]
remove broken comparison

9 years agocorrectly test Mix_OpenAudio for success
Bradley Bell [Sat, 25 Apr 2015 06:01:15 +0000 (23:01 -0700)]
correctly test Mix_OpenAudio for success

9 years agoMatch prototype declarations
Bradley Bell [Wed, 25 Mar 2015 05:05:16 +0000 (22:05 -0700)]
Match prototype declarations

9 years agoNo warn for pointer-to-int conversion
Bradley Bell [Wed, 25 Mar 2015 04:56:36 +0000 (21:56 -0700)]
No warn for pointer-to-int conversion

9 years agoAdd .travis.yml
Bradley Bell [Wed, 25 Mar 2015 03:55:03 +0000 (20:55 -0700)]
Add .travis.yml

9 years agothese controls only work via button_down
Bradley Bell [Thu, 5 Mar 2015 00:08:14 +0000 (16:08 -0800)]
these controls only work via button_down

9 years agoformatting
Bradley Bell [Wed, 25 Feb 2015 05:18:03 +0000 (21:18 -0800)]
formatting

9 years agohack to get editor working
Bradley Bell [Wed, 25 Feb 2015 09:12:05 +0000 (01:12 -0800)]
hack to get editor working

9 years agolook in editor/ subdir for editor files
Bradley Bell [Wed, 25 Feb 2015 09:11:45 +0000 (01:11 -0800)]
look in editor/ subdir for editor files

9 years agoadapted create_new_mission from dxx-rebirth
Bradley Bell [Wed, 25 Feb 2015 09:11:22 +0000 (01:11 -0800)]
adapted create_new_mission from dxx-rebirth

9 years agohardcode powerup names
Bradley Bell [Tue, 24 Feb 2015 10:11:31 +0000 (02:11 -0800)]
hardcode powerup names

9 years agoMake cvar names const
Bradley Bell [Tue, 24 Feb 2015 05:31:34 +0000 (21:31 -0800)]
Make cvar names const

9 years agofriendlier detection of cvar collision
Bradley Bell [Tue, 24 Feb 2015 01:10:36 +0000 (17:10 -0800)]
friendlier detection of cvar collision

9 years agodelete duplicate lunacy functions
Bradley Bell [Mon, 23 Feb 2015 22:35:17 +0000 (14:35 -0800)]
delete duplicate lunacy functions

9 years agoReplace cvar.archive with flags.
Bradley Bell [Mon, 23 Feb 2015 21:55:25 +0000 (13:55 -0800)]
Replace cvar.archive with flags.
Add cheat flag.

9 years agouse helper function for consistency in cheats
Bradley Bell [Mon, 23 Feb 2015 21:17:44 +0000 (13:17 -0800)]
use helper function for consistency in cheats

9 years agoConvert Cheats_enabled to cvar sv_cheats
Bradley Bell [Mon, 23 Feb 2015 19:50:39 +0000 (11:50 -0800)]
Convert Cheats_enabled to cvar sv_cheats

9 years agouse hash for cmd and alias list
Bradley Bell [Sun, 22 Feb 2015 21:05:35 +0000 (13:05 -0800)]
use hash for cmd and alias list

9 years agomake hash keys const
Bradley Bell [Sun, 22 Feb 2015 20:59:35 +0000 (12:59 -0800)]
make hash keys const

9 years agotry to find keys by ascii value first
Bradley Bell [Sun, 22 Feb 2015 08:52:39 +0000 (00:52 -0800)]
try to find keys by ascii value first

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