projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added wrapper function for playing and fading menu sounds and music
[rocksndiamonds.git]
/
src
/
libgame
/
snapshot.c
diff --git
a/src/libgame/snapshot.c
b/src/libgame/snapshot.c
index 1059eb954fc858616754b7f4722467fafd644400..a3c2162da54a73215557bdd025b9af5792f65db1 100644
(file)
--- a/
src/libgame/snapshot.c
+++ b/
src/libgame/snapshot.c
@@
-16,12
+16,6
@@
#define DEBUG_SNAPSHOTS 0
#endif
#define DEBUG_SNAPSHOTS 0
#endif
-#if DEBUG_SNAPSHOTS
-#define MAX_SNAPSHOT_BYTES (50 * 1024 * 1024)
-#else
-#define MAX_SNAPSHOT_BYTES (500 * 1024 * 1024)
-#endif
-
static ListNode *snapshot_single = NULL;
static ListNode *snapshot_list = NULL;
static ListNode *snapshot_current = NULL;
static ListNode *snapshot_single = NULL;
static ListNode *snapshot_list = NULL;
static ListNode *snapshot_current = NULL;
@@
-204,7
+198,7
@@
void SaveSnapshotToList(ListNode *snapshot_buffers)
num_snapshots++;
next_snapshot_key++;
num_snapshots++;
next_snapshot_key++;
- if (num_snapshot_bytes >
MAX_SNAPSHOT_BYTES
)
+ if (num_snapshot_bytes >
setup.engine_snapshot_memory
)
ReduceSnapshotList();
}
ReduceSnapshotList();
}