rnd-20060509-1-src
[rocksndiamonds.git] / src / editor.c
index 0ac44626cfb3b3d717bf1ab42706f8656634f186..088cdcee487de40b27703870bb0a5ecf11356190 100644 (file)
@@ -1691,7 +1691,7 @@ static struct ValueTextInfo options_action_type[] =
 
 static struct ValueTextInfo options_action_mode_none[] =
 {
-  { CA_ARG_UNDEFINED,          " "                             },
+  { CA_MODE_UNDEFINED,         " "                             },
 
   { -1,                                NULL                            }
 };
@@ -6366,12 +6366,22 @@ static void setSelectboxSpecialActionVariablesIfNeeded()
       /* only change if corresponding selectbox has changed */
       if (selectbox_info[ED_SELECTBOX_ID_ACTION_MODE].options !=
          action_arg_modes[mode])
+#if 0
+       custom_element_change.action_mode =
+         (action_arg_modes[mode])[0].value;
+#else
        custom_element_change.action_mode = -1;
+#endif
 
       /* only change if corresponding selectbox has changed */
       if (selectbox_info[ED_SELECTBOX_ID_ACTION_ARG].options !=
          action_arg_options[i].options)
+#if 0
+       custom_element_change.action_arg =
+         action_arg_options[i].options[0].value;
+#else
        custom_element_change.action_arg = -1;
+#endif
 
       break;
     }