move a pair of functions from save.c to restore.c
A utility that links only with restore.o needs to find them.
This commit is contained in:
@@ -1313,6 +1313,21 @@ rest_adjust_levelflags(void)
|
||||
/* adjust timestamps */
|
||||
relative_time_to_moves(&svl.level.flags.stasis_until);
|
||||
}
|
||||
void
|
||||
moves_to_relative_time(long *timestamp)
|
||||
{
|
||||
long prevts = *timestamp;
|
||||
|
||||
*timestamp = prevts - svm.moves;
|
||||
}
|
||||
|
||||
void
|
||||
relative_time_to_moves(long *timestamp)
|
||||
{
|
||||
long prevts = *timestamp;
|
||||
|
||||
*timestamp = svm.moves + prevts;
|
||||
}
|
||||
|
||||
/* "name-role-race-gend-algn" occurs very early in a save file; sometimes we
|
||||
want the whole thing, other times just "name" (for svp.plname[]) */
|
||||
|
||||
Reference in New Issue
Block a user