summaryrefslogtreecommitdiff
path: root/src/heretic/p_saveg.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-30heretic: Eliminate use of sprintf().Simon Howard
Use snprintf() in place of sprintf(). This is part of fixing #371.
2014-03-16heretic: Fix plat_t read when loading savegames.Simon Howard
The fix-up of the thinker function was (unnecessarily) guarded by an if() condition that meant it was not being reset properly on load. This caused moving platforms to be not restored properly when loading savegames. Fixes #343. Thanks to romeroyakovlev for the bug report.
2013-10-23When loading Heretic savegames, NULL out certain special values whichSimon Howard
hold pointers to other mobj_t objects that will no longer be valid. Subversion-branch: /branches/v2-branch Subversion-revision: 2718
2013-09-27Fix comments: HHE, not Dehacked.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2687
2013-09-27Map thing type and state table indexes to those used by Vanilla HereticSimon Howard
v1.3, for savegame compatibility. Subversion-branch: /branches/v2-branch Subversion-revision: 2686
2013-09-27Use portable functions for reading/writing sector effect thinkerSimon Howard
structures. Subversion-branch: /branches/v2-branch Subversion-revision: 2685
2013-09-24Use portable functions to read/write mobj_t structures.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2684
2013-09-24Add portable functions to read/write player_t structures and use thisSimon Howard
rather than copying chunks of memory. Subversion-branch: /branches/v2-branch Subversion-revision: 2683
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