Commit graph

3028 commits

Author SHA1 Message Date
Simon Howard
3a1bc4269d Add Contributor Covenant as Code of Conduct.
Chocolate Doom is only a small project, but it does have a small
community, and nowadays it is best practice to always have a Code of
Conduct.
2016-02-28 20:02:10 -05:00
Simon Howard
96a017b56f Update some doomworld http: links I missed.
Also fix the link to Lee Killough's page about visplane overflows;
it used to be on John Romero's website but is no longer there.
2016-02-28 14:36:59 -05:00
Simon Howard
826d2a09fa Update Doomworld URLs.
Doomworld is now available over https: so there's no reason to link
to unencrypted http: URLs (which are just redirect anyway). Also the
idgames interface URLs have changed.
2016-02-28 14:30:31 -05:00
Simon Howard
2137da434e Change all chocolate-doom.org URLs to https:
The website is now available over encrypted https: and there's no
reason to direct people to unencrypted http: URLs any more.
2016-02-28 14:20:19 -05:00
Simon Howard
e3954613bd opl: Fix compile errors.
I think these were introduced when functions in the file were made
static, eg.
"static declaration of 'OPL3_EnvelopeGenOff' follows non-static declaration"
Make function prototypes static where appropriate.
2016-02-28 13:25:19 -05:00
Simon Howard
a0ef4eda48 Merge pull request #669 from nukeykt/nuked-opl
opl: Nuked OPL emulator
2016-02-28 13:12:42 -05:00
nukeykt
166c3d2e9b opl: Fix tab characters 2016-02-28 21:59:12 +09:00
nukeykt
eb3cd65176 opl: Nuked OPL3 v1.7
Reformat the OPL3 code.
Remove the DBOPL core.
The OPL3 chip write delay implementation.
2016-02-28 21:53:03 +09:00
Simon Howard
cae001b84b CONTRIBUTING: Oops. 2016-02-17 19:53:23 -05:00
Simon Howard
f4bf4d8017 CONTRIBUTING: Add Git commit message guidelines.
Good commit messages are a thing to be encouraged.
2016-02-17 19:51:25 -05:00
Simon Howard
216dbe12a8 CONTRIBUTING: Tweak wording. 2016-02-17 19:37:04 -05:00
Simon Howard
deee694456 Add contributors guide.
This will appear when opening a new bug on GitHub.
2016-02-17 19:30:56 -05:00
Simon Howard
1360e6abb7 Fix automake warning by changing variable name.
The _SOURCES suffix has a special meaning in automake rules; change
MUS2MID_SOURCES to MUS2MID_SRC_FILES to avoid automake complaining.
2016-02-15 20:12:38 -05:00
nukeykt
e25368ca6b opl:Nuked OPL emulator 2016-02-11 20:49:48 +09:00
Simon Howard
5e162ed7e3 doom: Correctly handle savegame fopen() failure.
If the savegame directory is unwriteable we should exit with an error -
the previous behavior caused an infinite loop of attempting to open the
same file repeatedly. Because the player may value the progress they
have made, attempt to write the savegame to a temporary directory first
before exiting with an error.

This fixes #659. Thanks to @terrorcide for the bug report.
2016-02-06 17:38:17 -05:00
Simon Howard
b40e43e330 Merge pull request #655 from njankowski/issue-651
Fix typo and remove unused symbol. Fixes #651
2016-01-22 22:55:09 -05:00
njankowski
b2206374b8 Fix typo and remove unused symbol. Fixes #651 2016-01-22 16:33:50 -05:00
James Haley
37c1162fe8 Rogue did change the gib health check after all, we misread the assembly about 100 times in a row (this stuff is hard) 2016-01-11 04:08:06 -06:00
Simon Howard
3b7f8c554f Merge branch 'master' of github.com:chocolate-doom/chocolate-doom 2016-01-03 15:29:07 +01:00
Simon Howard
6aad2f8034 joystick: Don't initialize if joystick_index < 0.
We only initialize the joystick subsystem if usejoystick is true, but
joystick_index must also be valid in order to use a joystick, and a
negative value indicates no joystick is set.
2016-01-03 15:27:48 +01:00
Simon Howard
ca78a3ab8f Merge pull request #649 from rrebello/makefile-fix
Avoid use of '$<' and '$^' in Makefile rules
2015-12-31 09:05:10 +01:00
Rodrigo Rebello
86cb29b693 Avoid use of '$<' and '$^' in Makefile rules
Versions of make other than GNU make don't support automatic variables
in explicit rules, only in suffix (implicit) ones.

This fixes the build on FreeBSD (and possibly other BSD variants), which
was failing with errors like:

cp  chocolate-doom-setup
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file target_file
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file ... target_directory
*** Error code 64

Stop.
2015-12-30 11:36:28 -02:00
Simon Howard
59d5f4e54e Merge branch 'master' of github.com:chocolate-doom/chocolate-doom 2015-12-25 13:36:22 +01:00
Simon Howard
b0585fa6ec Fix bug when starting multiplayer Chex Quest games.
The server was rejecting connects when running with chex.wad, because it
was expecting the gamemode to be shareware; in fact, chex.wad contains
four episodes worth of levels (even though only five levels are used).
Technically it is therefore a retail IWAD and we should expect
gamemode=retail when using it. This fixes #647; thanks to Danfun64 for
reporting the bug.
2015-12-25 13:33:59 +01:00
Fabian Greffrath
3dd823caab tables.c: Changed type of finetangent[]/finesine[] to fixed_t 2015-12-11 14:11:29 +01:00
Fabian Greffrath
2ecfe698d5 Hexen: Let the MRJONES cheat report the same version string as HEXEN.EXE
Fixes #644
2015-11-30 21:35:40 +01:00
Fabian Greffrath
71cc7a163d Fix warning: variable ‘widget’ set but not used 2015-11-17 17:33:13 +01:00
Fabian Greffrath
6345a9bdee Do not blindly assume single-byte framebuffers 2015-11-17 11:13:31 +01:00
Fabian Greffrath
d368801835 Merge pull request #640 from chocolate-doom/de-obfuscate
De-obfuscate some numerical constants found in the source code
2015-11-12 13:07:50 +01:00
Fabian Greffrath
dba0583c05 De-obfuscate some numerical constants found in the source code
Also, fix pointer arithmetic in R_SetupFrame(), where
sizeof(lighttable_t) == 1 was correct incidentally.
2015-11-11 11:08:17 +01:00
Simon Howard
9cc55c7f01 Fix warning due to mismatched enum types.
disk_indicator is a disk_indicator_e, not a boolean.
2015-11-09 23:31:31 -05:00
Simon Howard
6fb9d62d14 Merge branch 'master' of github.com:chocolate-doom/chocolate-doom 2015-11-09 23:31:16 -05:00
Simon Howard
c9debbb1ce Set the window title for command prompt.
This is a bit more interesting than just displaying "tempscript.sh".
2015-11-09 23:30:34 -05:00
Simon Howard
74e95c6130 Merge pull request #594 from khokh2001/warp
Emulation of hidden par bug in Final Doom.
2015-11-08 19:22:48 -05:00
Simon Howard
0f569394d1 Add Fabian and Jon to AUTHORS. 2015-11-08 18:39:18 -05:00
Simon Howard
59698770a3 Merge pull request #638 from rrebello/io-ports-fix
opl: limit use of ioperm/inb/outb to x86 architecture
2015-11-06 18:42:58 +01:00
Simon Howard
b67821cd80 Merge pull request #637 from Azarien/upstream_master
Add v_diskicon.c/v_diskicon.h to MSVC project files.
2015-11-06 17:55:48 +01:00
Azarien
e811752619 Add v_diskicon.c/v_diskicon.h to MSVC project files. 2015-11-06 17:27:12 +01:00
Rodrigo Rebello
2e855ffeb6 opl: limit use of ioperm/inb/outb to x86 architecture
The use of I/O ports in the Linux driver to directly control OPL chips
is x86 specific and only really makes sense for x86-based PC's with
compatible hardware.

For some architectures (e.g. ARM), ioperm, inb and outb do exist and are
detected by the configure script (via AC_CHECK_FUNCS(ioperm)), but their
use is inappropriate in these cases and should be avoided.

In some other scenarios, like when using a GNU toolchain + uClibc for
PowerPC, the build even fails with the following error:

  opl_linux.c:26:20: fatal error: sys/io.h: No such file or directory

That is so because ioperm() is exported by uClibc and gets detected by
configure, which enables the "Linux" driver via definition of
HAVE_IOPERM, but in practice 'sys/io.h' is missing for ppc (inb/outb is
not implemented, and the call to ioperm() would return EIO anyway).

So, besides testing for HAVE_IOPERM, also test if either __i386__ or
__x86_64__ are defined before enabling this OPL driver.
2015-11-06 12:14:01 -02:00
Fabian Greffrath
2efd8ce221 autoconf: Re-direct error messages if pkg-config cannot be found
Else it will print something like

./configure: line 4426: --exists: command not found

which isn't really helpful, either.
2015-11-04 08:16:55 +01:00
Fabian Greffrath
0b0cae7206 autoconf: Call AC_CANONICAL_HOST before querying the host variable
Also, get the querying right to prevent false positives, from libvirt.
2015-11-04 07:35:18 +01:00
Fabian Greffrath
ff61aa8695 disk icon: Move check for accumulated read bytes to i_video.c 2015-11-02 13:48:32 +01:00
Fabian Greffrath
cb3520a3da disk icon: Make displaying the disk activity indicator optional 2015-11-02 11:40:00 +01:00
Fabian Greffrath
bba2a845a5 disk icon: Add a threshold for showing the disk icon
Only display the disk icon if more then the threshold of bytes
have been read during the previous tic.
2015-11-02 11:25:54 +01:00
Fabian Greffrath
5803fe8494 #include "i_system.h" in src/doom/p_doors.c for I_Error() 2015-11-02 08:06:30 +01:00
Fabian Greffrath
665e472b46 Merge pull request #634 from chocolate-doom/diskicon
Diskicon
2015-11-01 18:34:25 +01:00
Fabian Greffrath
cb4848b8da bash-completion: allow multiple files with the same extensions
passed to the same switch, e.g. -file a.wad b.wad.

Also, fix the -setmen typo.
2015-10-30 08:53:37 +01:00
Fabian Greffrath
278cd34b3e bash-completion: fix syntax error
_filedir expects a regex as an argument, not a lose list of file extensions
2015-10-30 08:25:21 +01:00
Simon Howard
ea37ca0e06 Merge pull request #632 from chungy/bash-completion-inst
bash-completion: Detect the appropriate directory for installation
2015-10-27 12:43:40 -04:00
Mike Swanson
c3e5879502 bash-completion: Detect the appropriate directory for installation 2015-10-27 09:30:24 -07:00