renamed BD style game element "sand_loose" to "grass_loose"
authorHolger Schemel <holger.schemel@virtion.de>
Sun, 6 Oct 2024 08:29:21 +0000 (10:29 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Sun, 6 Oct 2024 08:29:21 +0000 (10:29 +0200)
docs/elements/bdx_sand_loose.txt [deleted file]
src/conf_gfx.c
src/conf_snd.c
src/editor.c
src/main.c
src/main.h
src/tools.c

diff --git a/docs/elements/bdx_sand_loose.txt b/docs/elements/bdx_sand_loose.txt
deleted file mode 100644 (file)
index 125daa0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-A falling piece of sand. You cannot push it, but you can dig it away.
index 1557ab6a7e96d3e9cece09a02ab09c0199df2565..8eece06a55bcfb487de041af6378b53cbd8e6d06 100644 (file)
@@ -589,10 +589,10 @@ struct ConfigInfo image_config[] =
   { "bdx_grass_ball.ypos",                             "4"                             },
   { "bdx_grass_ball.frames",                           "1"                             },
 
-  { "bdx_sand_loose",                                  "RocksBD.png"                   },
-  { "bdx_sand_loose.xpos",                             "10"                            },
-  { "bdx_sand_loose.ypos",                             "4"                             },
-  { "bdx_sand_loose.frames",                           "1"                             },
+  { "bdx_grass_loose",                                 "RocksBD.png"                   },
+  { "bdx_grass_loose.xpos",                            "10"                            },
+  { "bdx_grass_loose.ypos",                            "4"                             },
+  { "bdx_grass_loose.frames",                          "1"                             },
 
   { "bdx_sand_sloped_up_left",                         "RocksBD.png"                   },
   { "bdx_sand_sloped_up_left.xpos",                    "8"                             },
index 3bfa619bb4c9aaa05d34d38768b0166d390dc902..815ed40063c32a2eeed7b9b2f46726b083af8c0c 100644 (file)
@@ -66,8 +66,8 @@ struct ConfigInfo sound_config[] =
   // sounds for Boulder Dash style elements and actions (native game engine)
   { "bdx_grass_ball.falling",                  "schlurf.wav"                   },
   { "bdx_grass_ball.impact",                   "schlurf.wav"                   },
-  { "bdx_sand_loose.falling",                  "schlurf.wav"                   },
-  { "bdx_sand_loose.impact",                   "schlurf.wav"                   },
+  { "bdx_grass_loose.falling",                 "schlurf.wav"                   },
+  { "bdx_grass_loose.impact",                  "schlurf.wav"                   },
   { "bdx_diamond.collecting",                  "pong.wav"                      },
   { "bdx_diamond.falling",                     "pling.wav"                     },
   { "bdx_diamond.impact",                      "pling.wav"                     },
index 3a16d8eeec9e844f8cd0af50b4ff73772ebbaee3..04e28920e62b254324c9ece8f3c84dcf2a79e695 100644 (file)
@@ -5711,7 +5711,7 @@ static int editor_el_boulderdash_native[] =
 
   EL_BDX_SAND_GLUED,
   EL_BDX_GRASS_BALL,
-  EL_BDX_SAND_LOOSE,
+  EL_BDX_GRASS_LOOSE,
   EL_BDX_WALL_NON_SLOPED,
 
   EL_BDX_SAND_SLOPED_UP_LEFT,
@@ -5820,7 +5820,7 @@ static int editor_el_boulderdash_effects[] =
   EL_BDX_NITRO_PACK_FALLING,
 
   EL_BDX_GRASS_BALL_FALLING,
-  EL_BDX_SAND_LOOSE_FALLING,
+  EL_BDX_GRASS_LOOSE_FALLING,
   EL_BDX_FALLING_WALL_FALLING,
   EL_EMPTY,
 
@@ -5961,8 +5961,8 @@ static int editor_el_boulderdash_scanned[] =
 {
   EL_BDX_GRASS_BALL_SCANNED,
   EL_BDX_GRASS_BALL_FALLING_SCANNED,
-  EL_BDX_SAND_LOOSE_SCANNED,
-  EL_BDX_SAND_LOOSE_FALLING_SCANNED,
+  EL_BDX_GRASS_LOOSE_SCANNED,
+  EL_BDX_GRASS_LOOSE_FALLING_SCANNED,
 
   EL_BDX_ROCK_SCANNED,
   EL_BDX_ROCK_FALLING_SCANNED,
index 6fa8423ceea2c3d4eca5cb1f7b0e4a2f14c47ad8..37e7cbbb2402403ac9449124d9bb97bbc3e01223 100644 (file)
@@ -6483,9 +6483,9 @@ struct ElementNameInfo element_name_info[MAX_NUM_ELEMENTS + 1] =
     "Grass ball"
   },
   {
-    "bdx_sand_loose",
-    "bdx_sand_loose",
-    "Loose sand"
+    "bdx_grass_loose",
+    "bdx_grass_loose",
+    "Loose grass"
   },
   {
     "bdx_sand_sloped_up_right",
@@ -7248,9 +7248,9 @@ struct ElementNameInfo element_name_info[MAX_NUM_ELEMENTS + 1] =
     "Grass ball (falling)"
   },
   {
-    "bdx_sand_loose.falling",
-    "bdx_sand_loose",
-    "Loose sand (falling)"
+    "bdx_grass_loose.falling",
+    "bdx_grass_loose",
+    "Loose grass (falling)"
   },
   {
     "bdx_rock.falling",
@@ -7728,14 +7728,14 @@ struct ElementNameInfo element_name_info[MAX_NUM_ELEMENTS + 1] =
     "Grass ball (falling) (scanned)"
   },
   {
-    "bdx_sand_loose.scanned",
-    "bdx_sand_loose",
-    "Loose sand (scanned)"
+    "bdx_grass_loose.scanned",
+    "bdx_grass_loose",
+    "Loose grass (scanned)"
   },
   {
-    "bdx_sand_loose.falling.scanned",
-    "bdx_sand_loose",
-    "Loose sand (falling) (scanned)"
+    "bdx_grass_loose.falling.scanned",
+    "bdx_grass_loose",
+    "Loose grass (falling) (scanned)"
   },
   {
     "bdx_rock.scanned",
index f5e66607e13bfdc04b16572aae5850e574dee1e1..8b477c853dcfe6490a9e433166173792254c666c 100644 (file)
 #define EL_BDX_SAND                            1254
 #define EL_BDX_GRASS                           1255
 #define EL_BDX_GRASS_BALL                      1256
-#define EL_BDX_SAND_LOOSE                      1257
+#define EL_BDX_GRASS_LOOSE                     1257
 #define EL_BDX_SAND_SLOPED_UP_RIGHT            1258
 #define EL_BDX_SAND_SLOPED_UP_LEFT             1259
 #define EL_BDX_SAND_SLOPED_DOWN_LEFT           1260
 
 #define EL_BDX_EFFECTS_START                   EL_BDX_RUNTIME_START
 #define EL_BDX_GRASS_BALL_FALLING              EL_BDX_EFFECTS_START
-#define EL_BDX_SAND_LOOSE_FALLING              1410
+#define EL_BDX_GRASS_LOOSE_FALLING             1410
 #define EL_BDX_ROCK_FALLING                    1411
 #define EL_BDX_FLYING_ROCK_FLYING              1412
 #define EL_BDX_HEAVY_ROCK_FALLING              1413
 #define EL_BDX_SCANNED_START                   1504
 #define EL_BDX_GRASS_BALL_SCANNED              EL_BDX_SCANNED_START
 #define EL_BDX_GRASS_BALL_FALLING_SCANNED      1505
-#define EL_BDX_SAND_LOOSE_SCANNED              1506
-#define EL_BDX_SAND_LOOSE_FALLING_SCANNED      1507
+#define EL_BDX_GRASS_LOOSE_SCANNED             1506
+#define EL_BDX_GRASS_LOOSE_FALLING_SCANNED     1507
 #define EL_BDX_ROCK_SCANNED                    1508
 #define EL_BDX_ROCK_FALLING_SCANNED            1509
 #define EL_BDX_FLYING_ROCK_SCANNED             1510
index e9d32bb1c0821f8b00e232d1f23b7d21e7786383..f3dbcf6fd6f6af91d66650e43108b3230a2cad21 100644 (file)
@@ -6152,15 +6152,15 @@ bd_object_mapping_list[] =
   },
   {
     O_DIRT_LOOSE,                              TRUE,
-    EL_BDX_SAND_LOOSE,                         -1, -1
+    EL_BDX_GRASS_LOOSE,                                -1, -1
   },
   {
     O_DIRT_LOOSE_F,                            TRUE,
-    EL_BDX_SAND_LOOSE_FALLING,                 -1, -1
+    EL_BDX_GRASS_LOOSE_FALLING,                        -1, -1
   },
   {
     O_DIRT_LOOSE_F,                            FALSE,
-    EL_BDX_SAND_LOOSE,                         ACTION_FALLING, -1
+    EL_BDX_GRASS_LOOSE,                                ACTION_FALLING, -1
   },
   {
     O_DIRT2,                                   TRUE,
@@ -7435,11 +7435,11 @@ bd_object_mapping_list[] =
   },
   {
     O_DIRT_LOOSE_scanned,                      TRUE,
-    EL_BDX_SAND_LOOSE_SCANNED,                 -1, -1
+    EL_BDX_GRASS_LOOSE_SCANNED,                        -1, -1
   },
   {
     O_DIRT_LOOSE_F_scanned,                    TRUE,
-    EL_BDX_SAND_LOOSE_FALLING_SCANNED,         -1, -1
+    EL_BDX_GRASS_LOOSE_FALLING_SCANNED,                -1, -1
   },
   {
     O_STONE_scanned,                           TRUE,