summaryrefslogtreecommitdiff
path: root/src/doom/g_game.c
AgeCommit message (Collapse)Author
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-30doom: Eliminate use of sprintf().Simon Howard
Use snprintf() or other functions in place of sprintf(). This is part of fixing #371.
2014-03-29doom: 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-23doom: Add initial support for versions < v1.9.Simon Howard
Add -gameversion options for v1.666, v1.7, v1.8. Set demo and savegame headers appropriately depending on version. Also add an enum entry for Doom v1.2 but no code support for it yet.
2014-03-23doom: Emulate 'no fog on spawn west' Vanilla bug.Simon Howard
A deathmatch player spawning facing directly west does not see the normal teleport fog (or hear it). This is because of an angle that should be unsigned but is actually signed. Import PrBoom's code to emulate this bug. This fixes #186.
2014-03-17Allow for PNG screenshots.Fabian Greffrath
2013-11-03Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2742
2012-12-24Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2553
2012-12-23Fix Doom episode 4 par time selection.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2550
2012-10-28Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2537
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-21Add -statdump command line parameter, to generate the same output asSimon Howard
statdump.exe does with Vanilla Doom. Subversion-branch: /branches/v2-branch Subversion-revision: 2450
2011-10-13Split out common main loop code into separate file, d_loop.c.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2413
2011-09-24Rework mouse speed box drawing code and move to common code, so that itSimon Howard
can be added to other games. Subversion-branch: /branches/v2-branch Subversion-revision: 2395
2011-09-20Add dedicated pack_chex and pack_hacx values for the Chex Quest and HacxSimon Howard
IWADs. Subversion-branch: /branches/v2-branch Subversion-revision: 2390
2011-06-13Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2347
2011-02-12Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2258
2010-12-10Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2214
2010-09-26Restructure player quit code to take place on the first tic after theSimon Howard
player quit, to avoid possible desyncs. Further refactoring to split game-specific code from generic code. Subversion-branch: /branches/raven-branch Subversion-revision: 2141
2010-08-31Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1987
2010-05-03Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1931
2010-02-05Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1845
2009-06-12Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1596
2009-06-09Move menu/map/weapon key variables into common code, and bind variables.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1581
2009-06-09Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1579
2008-09-28Move novert support into common i_video.c code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1302
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-20Replace all use of screens[0] by I_VideoBuffer.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1249
2008-09-20Remove screen parameter from V_DrawPatch functions; update code to useSimon Howard
V_UseBuffer where necessary. Subversion-branch: /branches/raven-branch Subversion-revision: 1248
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-10Split out variables for controls into common m_controls.c.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1219
2008-09-06Remove dependencies of i_video.c on doom/ code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1205
2008-09-06Remove includes of doomdef.h where possible, move generic parts into topSimon Howard
level. Subversion-branch: /branches/raven-branch Subversion-revision: 1204
2008-09-06Move doom-specific files to a separate directory.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1201