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
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index 5513a17f436ef330c70aa8527f788dfb4061e045..70441d1c649eb06074c3fe77ef482de307668ac8 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-193,20
+193,6
@@
static char *print_if_not_empty(int element)
return s;
}
return s;
}
-int correctLevelPosX_EM(int lx)
-{
- lx -= 1;
-
- return lx;
-}
-
-int correctLevelPosY_EM(int ly)
-{
- ly -= 1;
-
- return ly;
-}
-
int getFieldbufferOffsetX_RND(int dir, int pos)
{
int full_lev_fieldx = lev_fieldx + (BorderElement != EL_EMPTY ? 2 : 0);
int getFieldbufferOffsetX_RND(int dir, int pos)
{
int full_lev_fieldx = lev_fieldx + (BorderElement != EL_EMPTY ? 2 : 0);
@@
-305,8
+291,6
@@
static int getLevelFromScreenX_EM(int sx)
int px = sx - SX;
int lx = LEVELX((px + dx) / TILESIZE_VAR);
int px = sx - SX;
int lx = LEVELX((px + dx) / TILESIZE_VAR);
- lx = correctLevelPosX_EM(lx);
-
return lx;
}
return lx;
}
@@
-322,8
+306,6
@@
static int getLevelFromScreenY_EM(int sy)
int py = sy - SY;
int ly = LEVELY((py + dy) / TILESIZE_VAR);
int py = sy - SY;
int ly = LEVELY((py + dy) / TILESIZE_VAR);
- ly = correctLevelPosY_EM(ly);
-
return ly;
}
return ly;
}