Commit cac10455 authored by NY00123's avatar NY00123 Committed by Evan Ramos
Browse files

Store sector object interpolation data in saved game

parent 8a4c9ba0
......@@ -35,6 +35,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
#include "tags.h"
#include "lists.h"
#include "interp.h"
#include "interpso.h"
#include "network.h"
//#include "save.h"
......@@ -606,6 +607,8 @@ int SaveGame(short save_num)
for (i = short_numinterpolations - 1; i >= 0; i--)
saveisshot |= SaveSymDataInfo(fil, short_curipos[i]);
// SO interpolations
saveisshot |= so_writeinterpolations(fil);
// parental lock
for (i = 0; i < (int)SIZ(otlist); i++)
......@@ -1084,6 +1087,10 @@ int LoadGame(short save_num)
saveisshot |= LoadSymDataInfo(fil, (void **)&short_curipos[i]);
if (saveisshot) { MCLOSE_READ(fil); return -1; }
// SO interpolations
saveisshot |= so_readinterpolations(fil);
if (saveisshot) { MCLOSE_READ(fil); return -1; }
// parental lock
for (i = 0; i < (int)SIZ(otlist); i++)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment