projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version number set to 4.2.0.0
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index f366a36823529583faf4d0e570c77d3080410d4a..9e0327a491eac158a6907012e052b900287183eb 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-4394,12
+4394,6
@@
void UpdateEngineValues(int actual_scroll_x, int actual_scroll_y,
{
// this is used for non-R'n'D game engines to update certain engine values
{
// this is used for non-R'n'D game engines to update certain engine values
- if (level.game_engine_type == GAME_ENGINE_TYPE_EM)
- {
- actual_player_x = correctLevelPosX_EM(actual_player_x);
- actual_player_y = correctLevelPosY_EM(actual_player_y);
- }
-
// needed to determine if sounds are played within the visible screen area
scroll_x = actual_scroll_x;
scroll_y = actual_scroll_y;
// needed to determine if sounds are played within the visible screen area
scroll_x = actual_scroll_x;
scroll_y = actual_scroll_y;
@@
-14859,8
+14853,8
@@
void PlayLevelSound_EM(int xx, int yy, int element_em, int sample)
{
int element = (element_em > -1 ? map_element_EM_to_RND_game(element_em) : 0);
int offset = 0;
{
int element = (element_em > -1 ? map_element_EM_to_RND_game(element_em) : 0);
int offset = 0;
- int x = xx -
1 -
offset;
- int y = yy -
1 -
offset;
+ int x = xx - offset;
+ int y = yy - offset;
switch (sample)
{
switch (sample)
{