summaryrefslogtreecommitdiff
path: root/src/heretic/g_game.c
AgeCommit message (Collapse)Author
2015-01-19Add extra checks to weapon cycling loops.Simon Howard
Ensure that the loops to find the next weapon always terminate - even if there are somehow no weapons equipped. Also, only ever do weapon cycling when in the GS_LEVEL gamestate. This fixes #503 - thanks to Fabian and raithe on Doomworld.
2014-10-24Replace strdup() with M_StringDuplicate().Simon Howard
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.
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-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-03-29heretic: Eliminate use of unsafe string functions.Simon Howard
Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives.
2014-03-24Fix various Clang compiler warnings.Simon Howard
2014-03-23heretic/hexen: Fix -timedemo.Simon Howard
The -timedemo flag is broken in Vanilla Heretic/Hexen, as not all fields are read from the demo headers. Fix it, as there's no utility in having it nonfunctional and plenty of utility in having it functional. This fixes #300.
2014-03-17Allow for PNG screenshots.Fabian Greffrath
2014-03-16heretic/hexen: Fix pause key remapping.Simon Howard
Heretic and Hexen had the pause key hard-coded to KEY_PAUSE when they should actually use key_pause so that they can be remapped by the user. Thanks to Fabian Greffrath for the bug report (fixes #337).
2013-12-23heretic, hexen: Fix mouse (and joystick) weapon cycling.svdijk
Implement this the same way it is implemented for doom and strife.
2013-09-24Add portable functions to read integers from savegame files and useSimon Howard
these instead of reading directly from memory buffers. Subversion-branch: /branches/v2-branch Subversion-revision: 2682
2013-09-24Split Heretic savegame code into a separate file.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2681
2012-12-24Fix compiler warnings by removing variables that are set but not used.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2555
2011-10-29Enable gcc warning to detect redundant declarations, and clean upSimon Howard
instances of this within the code (thanks Edward-san). Subversion-branch: /branches/v2-branch Subversion-revision: 2468
2011-10-17Fix crash on respawn in Heretic (same as previously-fixed Hexen respawnSimon Howard
crash) Subversion-branch: /branches/v2-branch Subversion-revision: 2440
2011-10-15Add weapon cycling keys for Heretic.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2430
2011-10-13Convert Heretic code to use common main loop code. Working multiplayer!Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2417
2011-09-25Fix special1/special2 values so that they can properly hold pointerSimon Howard
values. This fixes Heretic under 64-bit. Subversion-branch: /branches/v2-branch Subversion-revision: 2406
2011-09-24Add -testcontrols to Heretic.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2396
2011-09-05Store Heretic savegames in the configuration directory, as with DoomSimon Howard
savegames. Subversion-branch: /branches/raven-branch Subversion-revision: 2361
2010-05-03Use dehacked printf functions in Heretic code where appropriate.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1932
2010-04-18Use DEH_String() around TXT_ definitions from dstrings.h.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1901
2010-02-08Add Heretic implementation of HHE "Text" section, add DEH_String()Simon Howard
around appropriate strings to allow string replacements. Subversion-branch: /branches/raven-branch Subversion-revision: 1867
2009-06-09Make Heretic weapon keys reconfigurable.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1584
2009-03-09Remove WATCOMC usage (thanks Quasar)Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1453
2008-11-02Fix up raven-branch copyright notices.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1375
2008-09-28Expand number of joystick buttons supported by Heretic to the numberSimon Howard
supported by Chocolate Doom. Subversion-branch: /branches/raven-branch Subversion-revision: 1304
2008-09-28Make the joybspeed autorun hack work in Heretic.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1303
2008-09-28Add support for extra mouse and keyboard controls to Heretic code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1300
2008-09-27Save Heretic configuration files on exit.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1294
2008-09-26Fix up Heretic code for mmaped WAD I/O. Call W_ReleaseLump* instead ofSimon Howard
Z_Free/Z_ChangeTag. Subversion-branch: /branches/raven-branch Subversion-revision: 1288
2008-09-24Remove old configuration file code and Cyberman code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1273
2008-09-23Add heretic key controls to config file list. Add key binding code toSimon Howard
heretic/d_main.c and change g_game.c to use the common definitions. Subversion-branch: /branches/raven-branch Subversion-revision: 1265
2008-09-20Remove definitions from heretic/doomdef.h and use common headers. MergeSimon Howard
heretic ticcmd_t to common type. Subversion-branch: /branches/raven-branch Subversion-revision: 1261
2008-09-20Move m_random.[ch] to doom/ (as Hexen uses a different random numberSimon Howard
table). Split RNG code out of heretic/m_misc.c to a separate m_random.c. Subversion-branch: /branches/raven-branch Subversion-revision: 1256
2008-09-20Remove bits from heretic/m_misc.c that are in common; changeSimon Howard
V_ScreenShot to take a format string describing the format of the filename for the screen shot file. Subversion-branch: /branches/raven-branch Subversion-revision: 1255
2008-09-20Merge heretic/v_video.c to common code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1252
2008-09-17Remove definitions from heretic/doomdef.h that are in common code.Simon Howard
Replace "shareware" variable with gamemode, as in doom code. Merge angle definitions into common code. Subversion-branch: /branches/raven-branch Subversion-revision: 1240
2008-09-17Split sound code out of Heretic's i_ibm.c into s_sound.c. RenameSimon Howard
soundst.h to s_sound.h to fit. Reformat sounds.c files to declare sounds through macros and harmonise on the common sfxinfo_t. Fix up Heretic sound code to use common sound API. Subversion-branch: /branches/raven-branch Subversion-revision: 1236
2008-09-14Silence some compiler warnings on heretic/hexen code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1228
2008-09-05Remove z_zone.c and tables.c, as these are identical to the version inSimon Howard
Doom. Subversion-branch: /branches/raven-branch Subversion-revision: 1199
2008-09-05Fix #include statements to use lower case filenames. Add automakeSimon Howard
configuration for building heretic/hexen code. Subversion-branch: /branches/raven-branch Subversion-revision: 1198
2008-09-05Reformat (beautify) Raven sources and add GPL headers.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1197
2008-09-04Add GPLed Heretic/Hexen source.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1195