X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finit.c;h=b2a396dfcea8ad972ec86170e0736922962a554e;hb=38c98f98f536b80d9f8f2af263e2f22825ab5b2b;hp=bd9cbc8576d1e751f38dbbc1d1a487c58c4b33a3;hpb=476df02707a263f71b8b91f7c6947e8033d20f5e;p=rocksndiamonds.git diff --git a/src/game_em/init.c b/src/game_em/init.c index bd9cbc85..b2a396df 100644 --- a/src/game_em/init.c +++ b/src/game_em/init.c @@ -63,7 +63,7 @@ void em_close_all(void) void play_element_sound(int x, int y, int sample, int element) { - PlayLevelSound_EM(x, y, element, sample); + PlayLevelSound_EM(CAVE_POS_X(x), CAVE_POS_Y(y), element, sample); } void play_sound(int x, int y, int sample) @@ -71,20 +71,6 @@ void play_sound(int x, int y, int sample) play_element_sound(x, y, sample, -1); } -int correctLevelPosX_EM(int lx) -{ - lx -= 1; - - return lx; -} - -int correctLevelPosY_EM(int ly) -{ - ly -= 1; - - return ly; -} - unsigned int InitEngineRandom_EM(int seed) { if (seed == NEW_RANDOMIZE)