- case Xspring:
- if (RANDOM(2))
- {
- switch (cave[x+1][y+1])
- {
- case Xblank:
- case Xacid_splash_e:
- case Xacid_splash_w:
-#ifdef EM_ENGINE_USE_ADDITIONAL_ELEMENTS
- case Xfake_acid_1:
- case Xfake_acid_2:
- case Xfake_acid_3:
- case Xfake_acid_4:
- case Xfake_acid_5:
- case Xfake_acid_6:
- case Xfake_acid_7:
- case Xfake_acid_8:
-#endif
- case Xalien:
- case Xalien_pause:
- cave[x][y+1] = Xspring_e;
- break;
-
- default:
- cave[x][y+1] = Xspring_w;
- break;
- }
- }
- else
- {
- switch (cave[x-1][y+1])
- {
- case Xblank:
- case Xacid_splash_e:
- case Xacid_splash_w:
-#ifdef EM_ENGINE_USE_ADDITIONAL_ELEMENTS
- case Xfake_acid_1:
- case Xfake_acid_2:
- case Xfake_acid_3:
- case Xfake_acid_4:
- case Xfake_acid_5:
- case Xfake_acid_6:
- case Xfake_acid_7:
- case Xfake_acid_8:
-#endif
- case Xalien:
- case Xalien_pause:
- cave[x][y+1] = Xspring_w;
- break;
- default:
- cave[x][y+1] = Xspring_e;
- break;
- }
- }
-
- next[x][y] = Xstone;
- return;
-
- case Xeater_n:
- case Xeater_e:
- case Xeater_s:
- case Xeater_w:
- cave[x][y] = Ystone_sB;
- cave[x][y+1] = Yeater_stone;
- Lboom_eater(x, y+1, Xstone_fall);
- score += lev.eater_score;
- return;
-
- case Xalien:
- case Xalien_pause:
- cave[x][y] = Ystone_sB;
- cave[x][y+1] = Yalien_stone;
- Lboom_tank(x, y+1, Xstone_fall);
- score += lev.alien_score;
- return;
-