case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yandroid_nB;
- Cave[x][y-1] = Yandroid_n;
Next[x][y] = Xblank;
+ Cave[x][y-1] = Yandroid_n;
Next[x][y-1] = Xandroid;
play_element_sound(x, y, SOUND_android_move, Xandroid_1_n);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yandroid_nB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y-2] == Xblank)
Cave[x+1][y-2] = Xacid_splash_e;
if (Cave[x-1][y-2] == Xblank)
Cave[x-1][y-2] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yandroid_nB;
- Cave[x][y-1] = Yandroid_n;
Next[x][y] = Xblank;
+ Cave[x][y-1] = Yandroid_n;
Next[x][y-1] = Xandroid_1_n;
play_element_sound(x, y, SOUND_android_move, Xandroid_2_n);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yandroid_nB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y-2] == Xblank)
Cave[x+1][y-2] = Xacid_splash_e;
if (Cave[x-1][y-2] == Xblank)
Cave[x-1][y-2] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yandroid_eB;
- Cave[x+1][y] = Yandroid_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yandroid_e;
Next[x+1][y] = Xandroid;
play_element_sound(x, y, SOUND_android_move, Xandroid_1_e);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yandroid_eB;
+ Next[x][y] = Xblank;
if (Cave[x+2][y-1] == Xblank)
Cave[x+2][y-1] = Xacid_splash_e;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yandroid_eB;
- Cave[x+1][y] = Yandroid_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yandroid_e;
Next[x+1][y] = Xandroid_1_e;
play_element_sound(x, y, SOUND_android_move, Xandroid_2_e);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yandroid_eB;
+ Next[x][y] = Xblank;
if (Cave[x+2][y-1] == Xblank)
Cave[x+2][y-1] = Xacid_splash_e;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yandroid_sB;
- Cave[x][y+1] = Yandroid_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yandroid_s;
Next[x][y+1] = Xandroid;
play_element_sound(x, y, SOUND_android_move, Xandroid_1_s);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yandroid_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yandroid_sB;
- Cave[x][y+1] = Yandroid_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yandroid_s;
Next[x][y+1] = Xandroid_1_s;
play_element_sound(x, y, SOUND_android_move, Xandroid_2_s);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yandroid_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yandroid_wB;
- Cave[x-1][y] = Yandroid_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yandroid_w;
Next[x-1][y] = Xandroid;
play_element_sound(x, y, SOUND_android_move, Xandroid_1_w);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yandroid_wB;
+ Next[x][y] = Xblank;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_e;
if (Cave[x-2][y-1] == Xblank)
Cave[x-2][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yandroid_wB;
- Cave[x-1][y] = Yandroid_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yandroid_w;
Next[x-1][y] = Xandroid_1_w;
play_element_sound(x, y, SOUND_android_move, Xandroid_1_w);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yandroid_wB;
+ Next[x][y] = Xblank;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_e;
if (Cave[x-2][y-1] == Xblank)
Cave[x-2][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Yeater_nB;
- Cave[x][y-1] = Yeater_n;
Next[x][y] = Xblank;
+ Cave[x][y-1] = Yeater_n;
Next[x][y-1] = Xeater_n;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yeater_nB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y-2] == Xblank)
Cave[x+1][y-2] = Xacid_splash_e;
if (Cave[x-1][y-2] == Xblank)
Cave[x-1][y-2] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Yeater_eB;
- Cave[x+1][y] = Yeater_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yeater_e;
Next[x+1][y] = Xeater_e;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yeater_eB;
+ Next[x][y] = Xblank;
if (Cave[x+2][y-1] == Xblank)
Cave[x+2][y-1] = Xacid_splash_e;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Yeater_sB;
- Cave[x][y+1] = Yeater_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yeater_s;
Next[x][y+1] = Xeater_s;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yeater_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Yeater_wB;
- Cave[x-1][y] = Yeater_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yeater_w;
Next[x-1][y] = Xeater_w;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yeater_wB;
+ Next[x][y] = Xblank;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_e;
if (Cave[x-2][y-1] == Xblank)
Cave[x-2][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Yalien_nB;
- Cave[x][y-1] = Yalien_n;
Next[x][y] = Xblank;
+ Cave[x][y-1] = Yalien_n;
Next[x][y-1] = Xalien_pause;
play_element_sound(x, y, SOUND_alien, Xalien);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yalien_nB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y-2] == Xblank)
Cave[x+1][y-2] = Xacid_splash_e;
if (Cave[x-1][y-2] == Xblank)
Cave[x-1][y-2] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
}
case Yplant:
case Zplayer:
Cave[x][y] = Yalien_sB;
- Cave[x][y+1] = Yalien_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yalien_s;
Next[x][y+1] = Xalien_pause;
play_element_sound(x, y, SOUND_alien, Xalien);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Yalien_eB;
- Cave[x+1][y] = Yalien_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yalien_e;
Next[x+1][y] = Xalien_pause;
play_element_sound(x, y, SOUND_alien, Xalien);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yalien_eB;
+ Next[x][y] = Xblank;
if (Cave[x+2][y-1] == Xblank)
Cave[x+2][y-1] = Xacid_splash_e;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
}
case Yplant:
case Zplayer:
Cave[x][y] = Yalien_wB;
- Cave[x-1][y] = Yalien_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yalien_w;
Next[x-1][y] = Xalien_pause;
play_element_sound(x, y, SOUND_alien, Xalien);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yalien_wB;
+ Next[x][y] = Xblank;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_e;
if (Cave[x-2][y-1] == Xblank)
Cave[x-2][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
}
case Yplant:
case Zplayer:
Cave[x][y] = Ybug_nB;
- Cave[x][y-1] = Ybug_n;
Next[x][y] = Xblank;
+ Cave[x][y-1] = Ybug_n;
Next[x][y-1] = Xbug_1_n;
play_element_sound(x, y, SOUND_bug, Xbug_1_n);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ybug_nB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y-2] == Xblank)
Cave[x+1][y-2] = Xacid_splash_e;
if (Cave[x-1][y-2] == Xblank)
Cave[x-1][y-2] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Ybug_eB;
- Cave[x+1][y] = Ybug_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ybug_e;
Next[x+1][y] = Xbug_1_e;
play_element_sound(x, y, SOUND_bug, Xbug_1_e);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ybug_eB;
+ Next[x][y] = Xblank;
if (Cave[x+2][y-1] == Xblank)
Cave[x+2][y-1] = Xacid_splash_e;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Ybug_sB;
- Cave[x][y+1] = Ybug_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ybug_s;
Next[x][y+1] = Xbug_1_s;
play_element_sound(x, y, SOUND_bug, Xbug_1_s);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ybug_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Ybug_wB;
- Cave[x-1][y] = Ybug_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ybug_w;
Next[x-1][y] = Xbug_1_w;
play_element_sound(x, y, SOUND_bug, Xbug_1_w);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ybug_wB;
+ Next[x][y] = Xblank;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_e;
if (Cave[x-2][y-1] == Xblank)
Cave[x-2][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Ytank_nB;
- Cave[x][y-1] = Ytank_n;
Next[x][y] = Xblank;
+ Cave[x][y-1] = Ytank_n;
Next[x][y-1] = Xtank_1_n;
play_element_sound(x, y, SOUND_tank, Xtank_1_n);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ytank_nB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y-2] == Xblank)
Cave[x+1][y-2] = Xacid_splash_e;
if (Cave[x-1][y-2] == Xblank)
Cave[x-1][y-2] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Ytank_eB;
- Cave[x+1][y] = Ytank_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ytank_e;
Next[x+1][y] = Xtank_1_e;
play_element_sound(x, y, SOUND_tank, Xtank_1_e);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ytank_eB;
+ Next[x][y] = Xblank;
if (Cave[x+2][y-1] == Xblank)
Cave[x+2][y-1] = Xacid_splash_e;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Ytank_sB;
- Cave[x][y+1] = Ytank_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ytank_s;
Next[x][y+1] = Xtank_1_s;
play_element_sound(x, y, SOUND_tank, Xtank_1_s);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ytank_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yplant:
case Zplayer:
Cave[x][y] = Ytank_wB;
- Cave[x-1][y] = Ytank_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ytank_w;
Next[x-1][y] = Xtank_1_w;
play_element_sound(x, y, SOUND_tank, Xtank_1_w);
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ytank_wB;
+ Next[x][y] = Xblank;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_e;
if (Cave[x-2][y-1] == Xblank)
Cave[x-2][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yemerald_sB;
- Cave[x][y+1] = Yemerald_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yemerald_s;
Next[x][y+1] = Xemerald_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yemerald_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Yemerald_eB;
- Cave[x+1][y] = Yemerald_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yemerald_e;
Next[x+1][y] = Xemerald_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Yemerald_wB;
- Cave[x-1][y] = Yemerald_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yemerald_w;
Next[x-1][y] = Xemerald_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Yemerald_wB;
- Cave[x-1][y] = Yemerald_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yemerald_w;
Next[x-1][y] = Xemerald_pause;
return;
}
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Yemerald_eB;
- Cave[x+1][y] = Yemerald_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yemerald_e;
Next[x+1][y] = Xemerald_pause;
return;
}
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yemerald_sB;
- Cave[x][y+1] = Yemerald_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yemerald_s;
Next[x][y+1] = Xemerald_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yemerald_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_w:
case Zplayer:
Cave[x][y] = Yemerald_sB;
- Cave[x][y+1] = Yemerald_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yemerald_s;
Next[x][y+1] = Xemerald_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yemerald_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Ydiamond_sB;
- Cave[x][y+1] = Ydiamond_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ydiamond_s;
Next[x][y+1] = Xdiamond_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ydiamond_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Ydiamond_eB;
- Cave[x+1][y] = Ydiamond_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ydiamond_e;
Next[x+1][y] = Xdiamond_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Ydiamond_wB;
- Cave[x-1][y] = Ydiamond_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ydiamond_w;
Next[x-1][y] = Xdiamond_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Ydiamond_wB;
- Cave[x-1][y] = Ydiamond_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ydiamond_w;
Next[x-1][y] = Xdiamond_pause;
return;
}
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Ydiamond_eB;
- Cave[x+1][y] = Ydiamond_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ydiamond_e;
Next[x+1][y] = Xdiamond_pause;
return;
}
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Ydiamond_sB;
- Cave[x][y+1] = Ydiamond_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ydiamond_s;
Next[x][y+1] = Xdiamond_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ydiamond_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_w:
case Zplayer:
Cave[x][y] = Ydiamond_sB;
- Cave[x][y+1] = Ydiamond_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ydiamond_s;
Next[x][y+1] = Xdiamond_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ydiamond_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xfake_acid_8:
#endif
Cave[x][y] = Ystone_sB;
- Cave[x][y+1] = Ystone_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ystone_s;
Next[x][y+1] = Xstone_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ystone_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xsand:
Cave[x][y] = Xsand_stonein_1;
- Cave[x][y+1] = Xsand_sandstone_1;
Next[x][y] = Xsand_stonein_2;
+ Cave[x][y+1] = Xsand_sandstone_1;
Next[x][y+1] = Xsand_sandstone_2;
return;
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Ystone_eB;
- Cave[x+1][y] = Ystone_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ystone_e;
Next[x+1][y] = Xstone_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Ystone_wB;
- Cave[x-1][y] = Ystone_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ystone_w;
Next[x-1][y] = Xstone_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Ystone_wB;
- Cave[x-1][y] = Ystone_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ystone_w;
Next[x-1][y] = Xstone_pause;
return;
}
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Ystone_eB;
- Cave[x+1][y] = Ystone_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ystone_e;
Next[x+1][y] = Xstone_pause;
return;
}
case Xfake_acid_8:
#endif
Cave[x][y] = Ystone_sB;
- Cave[x][y+1] = Ystone_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ystone_s;
Next[x][y+1] = Xstone_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ystone_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xfake_acid_8:
#endif
Cave[x][y] = Ystone_sB;
- Cave[x][y+1] = Ystone_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ystone_s;
Next[x][y+1] = Xstone_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ystone_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xnut:
case Xnut_pause:
- Cave[x][y+1] = Ynut_stone;
Next[x][y] = Xstone;
+ Cave[x][y+1] = Ynut_stone;
Next[x][y+1] = Xemerald;
play_element_sound(x, y, SOUND_crack, Xnut);
score += lev.nut_score;
}
Cave[x][y] = Ystone_sB;
- Cave[x][y+1] = Ydiamond_stone;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ydiamond_stone;
Next[x][y+1] = Xstone_pause;
play_element_sound(x, y, SOUND_squash, Xdiamond);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Ybomb_sB;
- Cave[x][y+1] = Ybomb_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ybomb_s;
Next[x][y+1] = Xbomb_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ybomb_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Ybomb_eB;
- Cave[x+1][y] = Ybomb_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ybomb_e;
Next[x+1][y] = Xbomb_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Ybomb_wB;
- Cave[x-1][y] = Ybomb_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ybomb_w;
Next[x-1][y] = Xbomb_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Ybomb_wB;
- Cave[x-1][y] = Ybomb_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ybomb_w;
Next[x-1][y] = Xbomb_pause;
return;
}
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Ybomb_eB;
- Cave[x+1][y] = Ybomb_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ybomb_e;
Next[x+1][y] = Xbomb_pause;
return;
}
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Ybomb_sB;
- Cave[x][y+1] = Ybomb_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ybomb_s;
Next[x][y+1] = Xbomb_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ybomb_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Ybomb_sB;
- Cave[x][y+1] = Ybomb_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ybomb_s;
Next[x][y+1] = Xbomb_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ybomb_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Ynut_sB;
- Cave[x][y+1] = Ynut_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ynut_s;
Next[x][y+1] = Xnut_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ynut_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Ynut_eB;
- Cave[x+1][y] = Ynut_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ynut_e;
Next[x+1][y] = Xnut_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Ynut_wB;
- Cave[x-1][y] = Ynut_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ynut_w;
Next[x-1][y] = Xnut_pause;
return;
}
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Ynut_wB;
- Cave[x-1][y] = Ynut_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ynut_w;
Next[x-1][y] = Xnut_pause;
return;
}
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Ynut_eB;
- Cave[x+1][y] = Ynut_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ynut_e;
Next[x+1][y] = Xnut_pause;
return;
}
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Ynut_sB;
- Cave[x][y+1] = Ynut_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ynut_s;
Next[x][y+1] = Xnut_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ynut_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_w:
case Zplayer:
Cave[x][y] = Ynut_sB;
- Cave[x][y+1] = Ynut_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Ynut_s;
Next[x][y+1] = Xnut_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ynut_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xplant:
case Yplant:
Cave[x][y] = Yspring_sB;
- Cave[x][y+1] = Yspring_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yspring_s;
Next[x][y+1] = Xspring_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yspring_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Yspring_eB;
+ Next[x][y] = Xblank;
Cave[x+1][y] = Yspring_e;
if (Cave[x][y+1] == Xbumper)
Cave[x][y+1] = XbumperB;
- Next[x][y] = Xblank;
#ifdef SPRING_ROLL
Next[x+1][y] = Xspring_e;
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Yspring_wB;
+ Next[x][y] = Xblank;
Cave[x-1][y] = Yspring_w;
if (Cave[x][y+1] == Xbumper)
Cave[x][y+1] = XbumperB;
- Next[x][y] = Xblank;
#ifdef SPRING_ROLL
Next[x-1][y] = Xspring_w;
if (tab_blank[Cave[x-1][y]] && tab_acid[Cave[x-1][y+1]])
{
Cave[x][y] = Yspring_wB;
+ Next[x][y] = Xblank;
Cave[x-1][y] = Yspring_w;
if (Cave[x][y+1] == Xbumper)
Cave[x][y+1] = XbumperB;
- Next[x][y] = Xblank;
#ifdef SPRING_ROLL
Next[x-1][y] = Xspring_w;
if (tab_blank[Cave[x+1][y]] && tab_acid[Cave[x+1][y+1]])
{
Cave[x][y] = Yspring_eB;
+ Next[x][y] = Xblank;
Cave[x+1][y] = Yspring_e;
if (Cave[x][y+1] == Xbumper)
Cave[x][y+1] = XbumperB;
- Next[x][y] = Xblank;
#ifdef SPRING_ROLL
Next[x+1][y] = Xspring_e;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yspring_sB;
- Cave[x][y+1] = Yspring_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yspring_s;
Next[x][y+1] = Xspring_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yspring_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yspring_sB;
- Cave[x][y+1] = Yspring_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yspring_s;
Next[x][y+1] = Xspring_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yspring_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yalien_sB:
case Yalien_wB:
Cave[x][y] = Yspring_eB;
- Cave[x+1][y] = Yspring_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yspring_e;
Next[x+1][y] = Xspring_e;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yspring_eB;
+ Next[x][y] = Xblank;
if (Cave[x+2][y-1] == Xblank)
Cave[x+2][y-1] = Xacid_splash_e;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yalien_s:
case Yalien_w:
Cave[x][y] = Yspring_alien_eB;
- Cave[x+1][y] = Yspring_alien_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yspring_alien_e;
Next[x+1][y] = Xspring_e;
play_element_sound(x, y, SOUND_slurp, Xalien);
score += lev.slurp_score;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yspring_sB;
- Cave[x][y+1] = Yspring_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yspring_s;
Next[x][y+1] = Xspring_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yspring_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yalien_sB:
case Yalien_wB:
Cave[x][y] = Yspring_wB;
- Cave[x-1][y] = Yspring_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yspring_w;
Next[x-1][y] = Xspring_w;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yspring_wB;
+ Next[x][y] = Xblank;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_e;
if (Cave[x-2][y-1] == Xblank)
Cave[x-2][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Yalien_s:
case Yalien_w:
Cave[x][y] = Yspring_alien_wB;
- Cave[x-1][y] = Yspring_alien_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yspring_alien_w;
Next[x-1][y] = Xspring_w;
play_element_sound(x, y, SOUND_slurp, Xalien);
score += lev.slurp_score;
case Xacid_splash_w:
case Zplayer:
Cave[x][y] = Yspring_sB;
- Cave[x][y+1] = Yspring_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yspring_s;
Next[x][y+1] = Xspring_fall;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yspring_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
default:
Cave[x][y] = Yemerald_eB;
- Cave[x+1][y] = Yemerald_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yemerald_e;
Next[x+1][y] = Xemerald_pause;
return;
}
default:
Cave[x][y] = Yemerald_wB;
- Cave[x-1][y] = Yemerald_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yemerald_w;
Next[x-1][y] = Xemerald_pause;
return;
}
default:
Cave[x][y] = Ydiamond_eB;
- Cave[x+1][y] = Ydiamond_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ydiamond_e;
Next[x+1][y] = Xdiamond_pause;
return;
}
default:
Cave[x][y] = Ydiamond_wB;
- Cave[x-1][y] = Ydiamond_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ydiamond_w;
Next[x-1][y] = Xdiamond_pause;
return;
}
default:
Cave[x][y] = Ystone_eB;
- Cave[x+1][y] = Ystone_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ystone_e;
Next[x+1][y] = Xstone_pause;
return;
}
default:
Cave[x][y] = Ystone_wB;
- Cave[x-1][y] = Ystone_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ystone_w;
Next[x-1][y] = Xstone_pause;
return;
}
default:
Cave[x][y] = Ybomb_eB;
- Cave[x+1][y] = Ybomb_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ybomb_e;
Next[x+1][y] = Xbomb_pause;
return;
}
default:
Cave[x][y] = Ybomb_wB;
- Cave[x-1][y] = Ybomb_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ybomb_w;
Next[x-1][y] = Xbomb_pause;
return;
}
default:
Cave[x][y] = Ynut_eB;
- Cave[x+1][y] = Ynut_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Ynut_e;
Next[x+1][y] = Xnut_pause;
return;
}
default:
Cave[x][y] = Ynut_wB;
- Cave[x-1][y] = Ynut_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Ynut_w;
Next[x-1][y] = Xnut_pause;
return;
}
default:
Cave[x][y] = Yspring_eB;
- Cave[x+1][y] = Yspring_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yspring_e;
Next[x+1][y] = Xspring_e;
return;
}
default:
Cave[x][y] = Yspring_wB;
- Cave[x-1][y] = Yspring_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yspring_w;
Next[x-1][y] = Xspring_w;
return;
}
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yballoon_nB;
- Cave[x][y-1] = Yballoon_n;
Next[x][y] = Xblank;
+ Cave[x][y-1] = Yballoon_n;
Next[x][y-1] = Xballoon;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yballoon_nB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y-2] == Xblank)
Cave[x+1][y-2] = Xacid_splash_e;
if (Cave[x-1][y-2] == Xblank)
Cave[x-1][y-2] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
}
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yballoon_eB;
- Cave[x+1][y] = Yballoon_e;
Next[x][y] = Xblank;
+ Cave[x+1][y] = Yballoon_e;
Next[x+1][y] = Xballoon;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yballoon_eB;
+ Next[x][y] = Xblank;
if (Cave[x+2][y-1] == Xblank)
Cave[x+2][y-1] = Xacid_splash_e;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
}
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yballoon_sB;
- Cave[x][y+1] = Yballoon_s;
Next[x][y] = Xblank;
+ Cave[x][y+1] = Yballoon_s;
Next[x][y+1] = Xballoon;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yballoon_sB;
+ Next[x][y] = Xblank;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
}
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Yballoon_wB;
- Cave[x-1][y] = Yballoon_w;
Next[x][y] = Xblank;
+ Cave[x-1][y] = Yballoon_w;
Next[x-1][y] = Xballoon;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Yballoon_wB;
+ Next[x][y] = Xblank;
if (Cave[x][y-1] == Xblank)
Cave[x][y-1] = Xacid_splash_e;
if (Cave[x-2][y-1] == Xblank)
Cave[x-2][y-1] = Xacid_splash_w;
- Next[x][y] = Xblank;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
}
case Yplant:
case Zplayer:
Cave[x][y] = Ydrip_1_sB;
- Cave[x][y+1] = Ydrip_1_s;
Next[x][y] = Xdrip_stretchB;
+ Cave[x][y+1] = Ydrip_1_s;
Next[x][y+1] = Xdrip_stretch;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Ydrip_1_sB;
+ Next[x][y] = Xdrip_stretchB;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xdrip_stretchB;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xacid_splash_e:
case Xacid_splash_w:
Cave[x][y] = Xsand_stonesand_quickout_1;
- Cave[x][y+1] = Xsand_stoneout_1;
Next[x][y] = Xsand_stonesand_quickout_2;
+ Cave[x][y+1] = Xsand_stoneout_1;
Next[x][y+1] = Xsand_stoneout_2;
return;
case Xacid_7:
case Xacid_8:
Cave[x][y] = Xsand_stonesand_quickout_1;
+ Next[x][y] = Xsand_stonesand_quickout_2;
if (Cave[x+1][y] == Xblank)
Cave[x+1][y] = Xacid_splash_e;
if (Cave[x-1][y] == Xblank)
Cave[x-1][y] = Xacid_splash_w;
- Next[x][y] = Xsand_stonesand_quickout_2;
play_element_sound(x, y, SOUND_acid, Xacid_1);
return;
case Xsand:
Cave[x][y] = Xsand_stonesand_1;
- Cave[x][y+1] = Xsand_sandstone_1;
Next[x][y] = Xsand_stonesand_2;
+ Cave[x][y+1] = Xsand_sandstone_1;
Next[x][y+1] = Xsand_sandstone_2;
return;
}