Переглянути джерело

tools: skip saving test level stuff when running the game

Daniele Bartolini 1 рік тому
батько
коміт
da8b326a67
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      tools/level_editor/level_editor.vala

+ 1 - 1
tools/level_editor/level_editor.vala

@@ -1861,7 +1861,7 @@ public class LevelEditorApplication : Gtk.Application
 
 
 	private async void start_game(StartGame sg)
 	private async void start_game(StartGame sg)
 	{
 	{
-		if (dump_test_level() != 0)
+		if (sg == StartGame.TEST && dump_test_level() != 0)
 			return;
 			return;
 
 
 		bool success = yield _data_compiler.compile(_project.data_dir(), _project.platform());
 		bool success = yield _data_compiler.compile(_project.data_dir(), _project.platform());