]> icculus.org git repositories - btb/d2x.git/log
btb/d2x.git
8 years agomove mingw to arch/win64
Bradley Bell [Tue, 5 May 2015 02:12:09 +0000 (19:12 -0700)]
move mingw to arch/win64

8 years agoslim down the mingw prereqs
Bradley Bell [Tue, 5 May 2015 00:57:44 +0000 (17:57 -0700)]
slim down the mingw prereqs

8 years agono need for separate no-gl build
Bradley Bell [Tue, 5 May 2015 00:12:48 +0000 (17:12 -0700)]
no need for separate no-gl build

8 years agotweak mingw build helper
Bradley Bell [Tue, 5 May 2015 00:11:27 +0000 (17:11 -0700)]
tweak mingw build helper

8 years agotravis build for mingw
Bradley Bell [Sun, 3 May 2015 19:13:25 +0000 (12:13 -0700)]
travis build for mingw

8 years agoRename MessageBox to ui_messagebox to avoid a conflict with Windows' MessageBox
Chris Taylor [Tue, 17 Apr 2012 08:11:42 +0000 (16:11 +0800)]
Rename MessageBox to ui_messagebox to avoid a conflict with Windows' MessageBox

8 years agoguard network-only function
Bradley Bell [Mon, 4 May 2015 04:22:24 +0000 (21:22 -0700)]
guard network-only function

8 years agoadd mingw prereq libs to repo
Bradley Bell [Sun, 3 May 2015 19:03:36 +0000 (12:03 -0700)]
add mingw prereq libs to repo

8 years agomingw helper script
Bradley Bell [Sun, 3 May 2015 18:06:34 +0000 (11:06 -0700)]
mingw helper script

8 years agoignore .exe files
Bradley Bell [Sun, 3 May 2015 15:51:25 +0000 (08:51 -0700)]
ignore .exe files

8 years agouse correct type
Bradley Bell [Sun, 3 May 2015 11:01:57 +0000 (04:01 -0700)]
use correct type

8 years agoalways use gl runtime loading for windows (and only for windows)
Bradley Bell [Sun, 3 May 2015 10:59:00 +0000 (03:59 -0700)]
always use gl runtime loading for windows (and only for windows)

8 years agouse correct type
Bradley Bell [Sun, 3 May 2015 10:30:18 +0000 (03:30 -0700)]
use correct type

8 years agoremove misplaced quotes
Bradley Bell [Sun, 3 May 2015 10:28:54 +0000 (03:28 -0700)]
remove misplaced quotes

8 years agofixed more compiler warnings
zicodxx [Mon, 11 Jun 2007 15:54:09 +0000 (15:54 +0000)]
fixed more compiler warnings

8 years agomveplayer needs SDLMIXER_CFLAGS
Bradley Bell [Sun, 3 May 2015 08:14:57 +0000 (01:14 -0700)]
mveplayer needs SDLMIXER_CFLAGS

8 years agousing sdl for joystick in mingw now
Bradley Bell [Sun, 3 May 2015 08:09:38 +0000 (01:09 -0700)]
using sdl for joystick in mingw now

8 years agousing sdl_mixer for midi in mingw now
Bradley Bell [Sun, 3 May 2015 08:08:59 +0000 (01:08 -0700)]
using sdl_mixer for midi in mingw now

8 years agoput exe extension in proper places
Bradley Bell [Sun, 3 May 2015 08:05:41 +0000 (01:05 -0700)]
put exe extension in proper places

8 years agoguard network-only functions
Bradley Bell [Sun, 3 May 2015 08:04:04 +0000 (01:04 -0700)]
guard network-only functions

8 years agoinitialize vars to zero
Bradley Bell [Sun, 3 May 2015 02:37:10 +0000 (19:37 -0700)]
initialize vars to zero

8 years agofunction has no return value
Bradley Bell [Sun, 3 May 2015 02:35:55 +0000 (19:35 -0700)]
function has no return value

8 years agoremove extraneous paren
Bradley Bell [Sun, 3 May 2015 02:35:29 +0000 (19:35 -0700)]
remove extraneous paren

8 years agoinclude conf.h
Bradley Bell [Sun, 3 May 2015 02:29:27 +0000 (19:29 -0700)]
include conf.h

8 years agoMerge branch 'master' into entity
Bradley Bell [Sun, 3 May 2015 02:22:01 +0000 (19:22 -0700)]
Merge branch 'master' into entity

8 years agocheck return values of fread
Bradley Bell [Sat, 2 May 2015 05:37:33 +0000 (22:37 -0700)]
check return values of fread

Fixes:
utilities/hogcreate.c:66:11: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]
utilities/hogextract.c:47:7: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]
utilities/hogextract.c:51:8: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]
utilities/hogextract.c:52:8: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]
utilities/hogextract.c:67:11: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]
utilities/mvlcreate.c:87:9: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]

8 years agouse memcpy instead of type-punning
Bradley Bell [Sat, 2 May 2015 05:12:59 +0000 (22:12 -0700)]
use memcpy instead of type-punning

Fixes:
arch/linux/linuxnet.c:190:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
arch/linux/linuxnet.c:192:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
arch/linux/linuxnet.c:415:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
arch/linux/ipx_bsd.c:150:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
arch/linux/ipx_bsd.c:196:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]

8 years agoDeleted unnecessary drop-to-shell feature; commented out unused ReadLispMacro - patch...
zicodxx [Thu, 3 Jan 2013 15:15:36 +0000 (16:15 +0100)]
Deleted unnecessary drop-to-shell feature; commented out unused ReadLispMacro - patches by Kp

8 years agoFix string overflow check
Bradley Bell [Sat, 2 May 2015 02:43:29 +0000 (19:43 -0700)]
Fix string overflow check

Fixes:
    inlined from ‘key_cmd_bind’ at arch/sdl/key.c:441:10:
/usr/include/x86_64-linux-gnu/bits/string3.h:152:3: error: call to __builtin___strncat_chk might overflow destination buffer [-Werror]

8 years agoCheck each element of server instead of casting to int
Bradley Bell [Sat, 2 May 2015 02:29:21 +0000 (19:29 -0700)]
Check each element of server instead of casting to int

Fixes:
main/network.c:759:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
main/network.c:882:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
main/network.c:3278:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]

8 years agoRemove unused function
Bradley Bell [Sat, 2 May 2015 02:16:45 +0000 (19:16 -0700)]
Remove unused function

Fixes:
In function ‘memcpy’,
    inlined from ‘multi_send_robot_controls’ at main/multi.c:4724:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:52:3: error: call to __builtin___memcpy_chk will always overflow destination buffer [-Werror]

8 years agoFixed compiler warning related to generation of game_id for Coop Savegames
zico [Thu, 10 Feb 2011 17:56:33 +0000 (18:56 +0100)]
Fixed compiler warning related to generation of game_id for Coop Savegames

8 years agoClarify test against bit arithmetic.
Bradley Bell [Sat, 2 May 2015 01:47:47 +0000 (18:47 -0700)]
Clarify test against bit arithmetic.

Fixes: main/editor/medwall.c:1100:6: error: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ [-Werror=parentheses]
8 years agoSuppress uninitialized warnings
Bradley Bell [Sat, 2 May 2015 01:45:31 +0000 (18:45 -0700)]
Suppress uninitialized warnings

Fixes:
main/gamesave.c:1583:3: error: ‘delta_light_offset’ may be used uninitialized in this function [-Werror=uninitialized]
main/gamesave.c:1582:3: error: ‘dl_indices_offset’ may be used uninitialized in this function [-Werror=uninitialized]
main/gamesave.c:1561:3: error: ‘num_delta_lights’ may be used uninitialized in this function [-Werror=uninitialized]

8 years agoInitialize bg
Bradley Bell [Sat, 2 May 2015 01:42:03 +0000 (18:42 -0700)]
Initialize bg

Fixes: main/newmenu.c:2550:18: error: ‘bg.background’ may be used uninitialized in this function [-Werror=uninitialized]
8 years agotake out invalid trigger flags
Bradley Bell [Sat, 2 May 2015 01:34:31 +0000 (18:34 -0700)]
take out invalid trigger flags

Fixes: main/editor/eswitch.c:414:5: error: overflow in implicit constant conversion [-Werror=overflow]
Fixes: main/editor/eswitch.c:418:5: error: overflow in implicit constant conversion [-Werror=overflow]
8 years agoremove redundant iff functions
Chris Taylor [Wed, 13 Feb 2008 11:46:49 +0000 (11:46 +0000)]
remove redundant iff functions

8 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]
8 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?)

8 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'
8 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]
8 years agoset travis language to c
Bradley Bell [Sat, 2 May 2015 00:35:28 +0000 (17:35 -0700)]
set travis language to c

8 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

8 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 agoentities for vertigo robots
Bradley Bell [Wed, 25 Feb 2015 01:55:19 +0000 (17:55 -0800)]
entities for vertigo robots

9 years agoimplement ent_create, so far drops any powerup or robot
Bradley Bell [Tue, 24 Feb 2015 23:00:38 +0000 (15:00 -0800)]
implement ent_create, so far drops any powerup or robot

9 years agodon't crash if boss can't teleport
Bradley Bell [Tue, 24 Feb 2015 22:55:41 +0000 (14:55 -0800)]
don't crash if boss can't teleport

9 years agoentities: start building up a global list of objects we can do stuff with
Bradley Bell [Tue, 24 Feb 2015 12:00:24 +0000 (04:00 -0800)]
entities: start building up a global list of objects we can do stuff with

9 years agohardcode robot names
Bradley Bell [Tue, 24 Feb 2015 11:33:00 +0000 (03:33 -0800)]
hardcode robot names

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