Age | Commit message (Collapse) | Author |
|
strdup() can theoretically fail and return NULL. This could lead to
a crash or undesirable behavior. Add M_StringDuplicate() which does
the same thing but exits with an error if a string cannot be
allocated.
This fixes #456. Thanks to Quasar for the suggestion.
|
|
This change rewrites and simplifies the copyright headers at the top
of all source files:
* Remove "Emacs style mode select" line; this line was included in
the headers for the originally released source files and appears
to be to set the file type for old versions of Emacs. I'm not sure
entirely why it was required but I don't think it is any more.
* Remove "You should have received a copy of..." text from copyright
header. This refers to the old 59 Temple Place address where the
FSF headquarters used to be located and is no longer correct.
Rather than change to the new address, just remove the paragraph
as it is superfluous anyway. This fixes #311.
* Remove ---- separator lines so that the file headers are barer
and more simplified.
|
|
Re-word some of the documentation for the joystick button config
variables, to avoid confusion between physical/virtual joystick
buttons.
|
|
The solution to solving #386 is to add a layer of indirection: the
game code can only support up to ~20 joystick buttons, but this
doesn't matter as long as we never want to bind more than 20 buttons
to actions anyway. Redefine the game's notion of buttons to be based
on "virtual" joystick buttons, and map these buttons to physical
(SDL) buttons based on configuration file variables.
|
|
When using a joystick or gamepad it's nice to be able to bring up the
menu without having to reach for the keyboard. This makes modern
gamepads more useful/usable.
|
|
Modern gamepads typically have 2-3 D-pads and joysticks. This means
that it's desirable to be able to use one joystick for turning and
another for strafing. Add another axis in addition to the current X
and y axes that performs strafe movement.
|
|
Some machines don't work well with 8-bit screen depths any more. It's
better to default to just using the machine's native color depth
instead. Change the default to 0 (for SDL_SetVideoMode this means "use
native color depth"), auto-adjust to native color depth on startup if
screen_bpp=0 (so that debug messages at least make sense) and document
for the config file value that a value of zero means "use native".
|
|
As part of this, add DIR_SEPARATOR_S as a string version of the
DIR_SEPARATOR macro. Change M_TempFile() to return a string allocated
on the C heap rather than the zone heap.
This is a first step towards fixing #371.
|
|
There is no real scan code for the PrintScreen key under DOS, but it
is convenient to be able to bind it as a screenshot key. Define a
"fake" scancode (126) to represent PrintScreen so that it can be
represented as a key binding in configuration files. Also add some
comments/notes to the scantokey[] lookup table.
This fixes #369.
|
|
It is useful to be able to set variables through an API provided by
the config module; this means that it is possible for one module to
set config variables of another in a more loosely-coupled way.
|
|
Mix_SetMusicCMD() allows a program to be specified to configure an
external program to be invoked for music playback. Add a config
variable (snd_musiccmd) to allow this to be set from a configuration
file. Thanks to Holering for his comments on Doomworld about how to do
this.
|
|
Add snd_maxslicetime_ms variable to control the size of the output
sound buffer, and reduce the default from 70ms to 28ms to match Doom's
35fps timer. Thanks to Holering for reporting this (fixes #345).
|
|
|
|
|
|
|
|
|
|
factor. This is an alternative to the approach taken in the version on
the trunk version, where all sounds are pre-converted at startup and
adjusted based on the maximum value.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2690
|
|
in Vanilla Strife.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2613
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2568
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2566
|
|
file.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2564
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2505
|
|
screen. Add a configuration file variable to control where the game
window should appear.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2467
|
|
Subversion-branch: /branches/strife-branch
Subversion-revision: 2367
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 2360
|
|
Subversion-branch: /branches/strife-branch
Subversion-revision: 2295
|
|
cached soundss.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2290
|
|
variable to control dialogue text messages, as in vanilla. Also, absence
of voices.wad, or use of the -novoices parameter, will now properly both
disable voices AND enable dialogue text.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2268
|
|
temporarily until the netgame changes on raven-branch are finished.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2259
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 2258
|
|
shift, to match Vanilla (thanks AlexXav).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2238
|
|
also checks that extra options were provided on the command line (thanks
Sander van Dijk).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2223
|
|
several days ago.
Subversion-branch: /branches/raven-branch
Subversion-revision: 2212
|
|
screen mode.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2167
|
|
screen pixel depth.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2166
|
|
m_saves.c to other platform builds. See also email regarding opendir
etc.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2151
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 2064
|
|
Subversion-branch: /branches/strife-branch
Subversion-revision: 2051
|
|
current behavior of Choco Doom in treating configuration variable
strings as case-sensitive, because these are the real values used by
Rogue in their config, and they differ from some Heretic/Hexen config
strings only by case.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2000
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1987
|
|
bar redraw when menus are active as in Strife. Finished up the Strife
"settings" menu which was only for sound volumes in vanilla Doom.
Subversion-branch: /branches/strife-branch
Subversion-revision: 1973
|
|
cycling bindings to configuration file and setup tool.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1953
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1948
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1947
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1940
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1939
|
|
Subversion-branch: /branches/raven-branch
Subversion-revision: 1737
|
|
of range (thanks entryway).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1732
|
|
crash. Check and disable MIDI by default if using an older version of
SDL on OS X.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1730
|
|
use hardware keys.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1600
|