From 36d0e6ff3c76c763be2392f1492eb37c4f062d30 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 24 Oct 2006 19:56:07 +0200 Subject: [PATCH] rnd-20061024-1-src * fixed bug that allowed making engine snapshots from the level editor --- ChangeLog | 3 +++ src/conftime.h | 2 +- src/game.c | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f016599a..17baa7ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-10-24 + * fixed bug that allowed making engine snapshots from the level editor + 2006-10-22 * fixed bugs with player name and current level positions on main screen diff --git a/src/conftime.h b/src/conftime.h index b01134df..8bb265d1 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2006-10-22 15:20]" +#define COMPILE_DATE_STRING "[2006-10-24 19:53]" diff --git a/src/game.c b/src/game.c index 2ed1121b..f078ff7c 100644 --- a/src/game.c +++ b/src/game.c @@ -12683,6 +12683,9 @@ void SaveEngineSnapshot() { FreeEngineSnapshot(); /* free previous snapshot, if needed */ + if (level_editor_test_game) /* do not save snapshots from editor */ + return; + /* copy some special values to a structure better suited for the snapshot */ SaveEngineSnapshotValues_RND(); -- 2.34.1