summaryrefslogtreecommitdiff
path: root/src/strife
AgeCommit message (Collapse)Author
2014-05-05Clean up file headers.Simon Howard
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.
2014-04-30strife: Fix joystick jump button.Simon Howard
The code to handle the joystick jump button variable was not implemented. Check the jump button on the joystick as well as the keyboard and mouse button equivalents when deciding whether to set the jump bit.
2014-04-19Exit with error on startup if using the wrong IWAD.Simon Howard
Having multiple binaries can cause some confusion - some users try to run chocolate-doom with hexen.wad, thinking it is supported. Add a startup check that makes sure the user is not trying to start the game using the wrong IWAD file for the binary being run. This fixes #382.
2014-04-19joystick: Add joystick button to toggle menu.Simon Howard
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.
2014-04-19joystick: Add an axis to allow strafing.Simon Howard
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.
2014-04-01Replace all snprintf() calls with M_snprintf().Simon Howard
The Windows API has an _snprintf function that is not the same as Unix's snprintf(): if the string is truncated then no trailing NUL character is appended. This makes the function unsafe. Define a replacement/wrapper called M_snprintf that works the same but always appends a trailing NUL, for safety on Windows and other OSes that behave like this. Do the same thing for vsnprintf(), and update HACKING to list snprintf/vsnprintf as forbidden functions. This fixes #375; thanks to Quasar for pointing out the different behavior of these functions.
2014-03-31strife: Add missing NULL to M_StringJoin call.Simon Howard
2014-03-31Fix typo in src/strife/p_saveg.cFabian Greffrath
2014-03-30strife: Eliminate use of sprintf().Simon Howard
Use snprintf() in place of sprintf(). This is part of fixing #371.
2014-03-30hexen: Make -playdemo cope with paths.Simon Howard
Vanilla Hexen makes you specify the demo name to play by giving the plain lump name, eg. heretic -playdemo mydemo to load mydemo.lmp. It doesn't work if you specify the extension or the full file path. As a convenience and to match the behavior of Chocolate Doom, allow paths and extensions. Also rework the code for other games so that they're slightly more consistent. This fixes #301.
2014-03-29strife: Eliminate use of unsafe string functions.Simon Howard
Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives.
2014-03-27strife: Fix default music volume to match Vanilla.Simon Howard
Strife's default music volume is 13 as opposed to Doom's value of 8. This was apparently not changed during the development of Chocolate Strife. Thanks to Alexandre-Xavier for noticing this and providing the correct value (bug #347).
2014-03-25Set GUS patch path variable using D_SetVariable.Simon Howard
commit 42faefce1fd03 added code to set the GUS patch path automatically when the BFG Edition is installed, but this caused problems because gusconf.c is not included as part of the build for the setup tool. Use D_SetVariable() instead which accomplishes the same thing without a hard dependency.
2014-03-24Fix various Clang compiler warnings.Simon Howard
2014-03-23Rearrange order of SDL sound startup.Simon Howard
Initialize low-level sound startup (calls to I_InitSound) separately from the high-level sound startup (S_Init). In particular, make sure that SDL sound is initialized before the textscreen multiplayer waiting screen is shown. This is an attempt to fix a bug with sound in multiplayer games on Windows; calling SDL_QuitSubSystem(SDL_INIT_VIDEO) (on closedown of the textscreen library) causes subsequent attempts to initialize audio to fail. Big thanks go to Alexandre-Xavier (AXDOOMER) for working out a fix for this bug and James Haley (Quasar) for giving some technical background about the lack of separation between SDL subsystems. This (hopefully) fixes #270.
2014-03-23Set default for key_menu_screenshot to 0.Simon Howard
In #364 I recommended -1 as the default to avoid taking screenshots in some situations where a key event is posted for key 0. It turns out that wasn't such a great idea, as -1 is not parsed properly by the config parser, and is shown as ??-1 in the setup tool. Default to zero instead, and add guards to prevent screenshots being taken by mistake. Thanks to Alexandre-Xavier for pointing this out.
2014-03-18Add a dedicated key for taking screenshots.Fabian Greffrath
2014-03-17Allow for PNG screenshots.Fabian Greffrath
2013-12-06Fix crash caused by Strife nicknames (thanks fabian).Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2760
2013-11-03Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2742
2013-11-02* Fixed deathmatch spots error message to match binary (why'd theyJames Haley
change it?) * Made attribution timestamps consistent in g_game.c Subversion-branch: /branches/v2-branch Subversion-revision: 2739
2013-11-01Proper output of randomparm's current value when passing throughJames Haley
D_CheckNetGame Subversion-branch: /branches/v2-branch Subversion-revision: 2738
2013-10-31* Fix problem that crashes netdemos in ST_DrawerJames Haley
* Made attribution comment date formats consistent in st_stuff.c Subversion-branch: /branches/v2-branch Subversion-revision: 2737
2013-10-28Fix Vanilla behavior of shift key when entering savegame names in theSimon Howard
menu (thanks Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2723
2013-10-19Correct up/down look logic that was incorrectly allowing 6 degrees ofJames Haley
additional freedom. Subversion-branch: /branches/v2-branch Subversion-revision: 2713
2013-10-08Don't grab the mouse at the Strife startup screen.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2697
2013-09-22Small fix to a big problem regarding save slots.James Haley
Subversion-branch: /branches/v2-branch Subversion-revision: 2679
2013-09-21Sync -random command line parameter as part of game settings.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2670
2013-09-19Change to using V_DrawFilledBox to clear the intro screen instead ofJames Haley
loading and drawing PANEL0. Subversion-branch: /branches/v2-branch Subversion-revision: 2664
2013-09-16Support for the -random parameter. Needs netcode support (passing theJames Haley
ball to fraggle). Subversion-branch: /branches/v2-branch Subversion-revision: 2657
2013-09-15Re-enable netgame check on code that enters chat state.James Haley
Subversion-branch: /branches/v2-branch Subversion-revision: 2647
2013-09-15Hopefully complete implementation of player names and Strife player chatJames Haley
features, which work differently than they did in DOOM. If working properly, then this fully completes Chocolate Strife, aside from any presently unknown issues. Subversion-branch: /branches/v2-branch Subversion-revision: 2646
2013-09-15Frags are displayed on keys popup during deathmatchJames Haley
Subversion-branch: /branches/v2-branch Subversion-revision: 2645
2013-09-04Don't show ENDOOM screen when aborting netgame startup (thanks AlexandreSimon Howard
Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2635
2013-09-04Extend "emulation" of menu pause key behavior to caps/num/scroll lockSimon Howard
keys, which cause the same behavior. Subversion-branch: /branches/v2-branch Subversion-revision: 2632
2013-08-17Fix Chocolate Doom/Strife to emulate weird Vanilla behavior when theSimon Howard
pause key is pressed in a menu with a scroll-bar (thanks Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2620
2013-08-10Fix Strife documentation comments. Remove -episode which does not existSimon Howard
in Vanilla Strife. Subversion-branch: /branches/v2-branch Subversion-revision: 2613
2013-08-10Tweak Strife documentation comments.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2612
2013-04-05Use two-stage netgame startup for Strife, and restore the previousSimon Howard
startup splash-screen behavior (before it was modified in r2435). Subversion-branch: /branches/v2-branch Subversion-revision: 2586
2013-04-05Use two-stage startup for Hexen, and add netgame startup callback forSimon Howard
the spinal loading screen. Subversion-branch: /branches/v2-branch Subversion-revision: 2585
2013-04-05Split Doom netgame startup into two stages.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2583
2013-04-05Split D_InitNetGame() into two separate functions for startup.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2582
2013-03-24Initial docgen changes to generate manpages for Heretic, Hexen, Strife.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2568
2013-03-02Big bug fix: player->damage is not capped on the low end to 0 inJames Haley
P_DamageMobj. This means you *do* have to heal negative damage when auto-using inventory, and is why telefrags can still insta-kill you in vanilla - they were NOT doing so previously. Subversion-branch: /branches/v2-branch Subversion-revision: 2563
2013-03-02Noticed another non-authentic error in a built-in dialog message for theJames Haley
Acolyte. Subversion-branch: /branches/v2-branch Subversion-revision: 2562
2013-03-02Complete support for v1.31 behaviors in addition to v1.2, including theJames Haley
ability to save on multiple save slots. Subversion-branch: /branches/v2-branch Subversion-revision: 2561
2013-02-25Portability tweak when adding quest flags from collected items, due toJames Haley
the Broken Power Coupling's anomalous speed value of 512*FRACUNIT (verified against binary). Added note about this in the quest flags enumeration as well; bit 31 (quest #32) is accidentally set by this item, but is never checked for anywhere. Subversion-branch: /branches/v2-branch Subversion-revision: 2560
2013-02-10* Made formatting consistent in T_MovePlane so code could be readJames Haley
* Fixed an error in the translation of T_MovePlane changes; floors moving up SHOULD test crush == true before calling P_ChangeSector again. Subversion-branch: /branches/v2-branch Subversion-revision: 2559
2013-02-09* Update MSVC project fileJames Haley
* Add /msvc/strfsav* and *.pcx to ignore list * Fix for Strife crushAndRaise, silentCrushAndRaise types identified by Gez and verified with the disassembly - these types do not inflict crushing damage in Strife. Subversion-branch: /branches/v2-branch Subversion-revision: 2558
2012-12-24Fix compiler warnings by removing variables that are set but not used.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2555