summaryrefslogtreecommitdiff
path: root/src/heretic/am_map.c
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-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-30heretic: Eliminate use of sprintf().Simon Howard
Use snprintf() in place of sprintf(). This is part of fixing #371.
2014-03-22heretic/hexen: Fix automap background scrolling.Simon Howard
There was a bug where it was possible to keep moving the background when the boundaries of the map were reached. This is because the code to move the background was done in calls to AM_Drawer(), which is fundamentally a bad idea. Some old commented-out code shows that this was previously done in AM_Drawer (same location that scrolls the map itself), but it was moved. Move it back. Thanks to Chris Fielder for the bug report; this fixes #321.
2013-12-28heretic: fix automap panning leftChris Fielder
When follow mode is off, hitting left would cause it to scroll all the way to the west of the map without stopping.
2012-12-24Fix compiler warnings by removing variables that are set but not used.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2555
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-10-16Fix compile under MSVC (thanks entryway).Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1718
2009-06-09Make Heretic map reconfigurable.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1583
2008-11-02Fix up raven-branch copyright notices.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1375
2008-09-25Remove ExtendedWAD variable; use gamemode == retail.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1286
2008-09-24Replace all occurrences of long with int in the Heretic code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1270
2008-09-20Replace heretic "screen" variable with I_VideoBuffer.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1253
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-17Convert MAXINT/MININT -> INT_MAX/INT_MIN in Heretic/Hexen code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1234
2008-09-14Silence some compiler warnings on heretic/hexen code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1228
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