From: Holger Schemel Date: Tue, 24 Oct 2006 17:56:07 +0000 (+0200) Subject: rnd-20061024-1-src X-Git-Tag: 3.2.3^2~23 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=36d0e6ff3c76c763be2392f1492eb37c4f062d30;p=rocksndiamonds.git rnd-20061024-1-src * fixed bug that allowed making engine snapshots from the level editor --- 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();