Skip to content

Commit

Permalink
Continued work on the common save code.
Browse files Browse the repository at this point in the history
jHexen now uses the same mechanisms for reading/writing thinkers as the other games.
jHexen now saves a player header like the other games.
Support for 1.8.6 jHexen save games is now working again other than a discrepancy between read/write of floormove_t which leads to failing a segment assert if they are present in a save.
Clean up.
  • Loading branch information
danij committed Mar 23, 2007
1 parent 98d7175 commit 5320c3c
Show file tree
Hide file tree
Showing 2 changed files with 542 additions and 580 deletions.
31 changes: 12 additions & 19 deletions doomsday/plugins/common/include/p_saveg.h
Expand Up @@ -36,6 +36,7 @@ typedef enum lineclass_e {
lc_normal,
lc_xg1
} lineclass_t;
#endif

typedef enum thinkclass_e {
TC_NULL = -1,
Expand All @@ -46,6 +47,16 @@ typedef enum thinkclass_e {
TC_DOOR,
TC_FLOOR,
TC_PLAT,
#if __JHEXEN__
TC_INTERPRET_ACS,
TC_FLOOR_WAGGLE,
TC_LIGHT,
TC_PHASE,
TC_BUILD_PILLAR,
TC_ROTATE_POLY,
TC_MOVE_POLY,
TC_POLY_DOOR,
#else
TC_FLASH,
TC_STROBE,
# if __JDOOM__
Expand All @@ -57,28 +68,10 @@ typedef enum thinkclass_e {
# else
TC_GLOW,
# endif
#endif
NUMTHINKERCLASSES
} thinkerclass_t;

#else
typedef enum thinkclass_e {
TC_NULL,
TC_CEILING,
TC_DOOR,
TC_FLOOR,
TC_PLAT,
TC_INTERPRET_ACS,
TC_FLOOR_WAGGLE,
TC_LIGHT,
TC_PHASE,
TC_BUILD_PILLAR,
TC_ROTATE_POLY,
TC_MOVE_POLY,
TC_POLY_DOOR,
NUMTHINKERCLASSES
} thinkerclass_t;
#endif

void SV_Init(void);
void SV_SaveGameFile(int slot, char *str);
int SV_GetSaveDescription(char *filename, char *str);
Expand Down

0 comments on commit 5320c3c

Please sign in to comment.