restricted slippery walls option to R'n'D engine in level editor
authorHolger Schemel <info@artsoft.org>
Sat, 9 Mar 2024 10:33:08 +0000 (11:33 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 9 Mar 2024 10:34:56 +0000 (11:34 +0100)
src/editor.c

index ca5e06b9b778d097517f190b87a78bc3d7c5f121..e1f639aa2597695bc6e142ec9383c7e96e4e2e21 100644 (file)
@@ -10890,7 +10890,8 @@ static void DrawPropertiesConfig(void)
   if (IS_BD_PLAYER_ELEMENT(properties_element))
     MapCheckbuttonGadget(ED_CHECKBUTTON_ID_BD_DIAGONAL_MOVEMENTS);
 
-  if (IS_GEM(properties_element))
+  // special case: slippery walls option for gems only available in R'n'D game engine
+  if (IS_GEM(properties_element) && level.game_engine_type == GAME_ENGINE_TYPE_RND)
   {
     checkbutton_info[ED_CHECKBUTTON_ID_EM_SLIPPERY_GEMS].y =
       ED_ELEMENT_SETTINGS_XPOS(properties_element == EL_BD_DIAMOND ? 2 : 1);