restricted customizing empty space to R'n'D engine in level editor
authorHolger Schemel <info@artsoft.org>
Sat, 9 Mar 2024 10:28:59 +0000 (11:28 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 9 Mar 2024 10:28:59 +0000 (11:28 +0100)
src/editor.c

index b45f7c1963bef59c338cc0cdafdcc5dc6d55e2cc..ca5e06b9b778d097517f190b87a78bc3d7c5f121 100644 (file)
@@ -10636,6 +10636,10 @@ static boolean checkPropertiesConfig(int element)
 {
   int i;
 
+  // special case: empty space customization only available in R'n'D game engine
+  if (element == EL_EMPTY_SPACE && level.game_engine_type != GAME_ENGINE_TYPE_RND)
+    return FALSE;
+
   if (IS_GEM(element) ||
       IS_CUSTOM_ELEMENT(element) ||
       IS_GROUP_ELEMENT(element) ||