rnd-20040928-1-src
[rocksndiamonds.git] / src / init.c
index 166ee1d46288fd2d118e8a2999a8e0cc08407dca..f0f528ce1ca3093e12bdf3ca0538f21d616357f2 100644 (file)
@@ -1260,6 +1260,13 @@ static void InitElementSoundInfo()
        default_action_sound = element_info[i].sound[ACTION_DEFAULT];
 #endif
 
+#if 1
+      /* !!! needed because EL_EMPTY_SPACE treated as IS_SP_ELEMENT !!! */
+      /* !!! make this better !!! */
+      if (i == EL_EMPTY_SPACE)
+       default_action_sound = element_info[EL_DEFAULT].sound[act];
+#endif
+
       /* no sound for this specific action -- use default action sound */
       if (element_info[i].sound[act] == -1)
        element_info[i].sound[act] = default_action_sound;