diff --git a/src/field.c b/src/field.c index 9aef8ba..a087664 100644 --- a/src/field.c +++ b/src/field.c @@ -1,4 +1,4 @@ -/* $Id: field.c,v 1.51 2003/12/28 01:21:43 stpohle Exp $ */ +/* $Id: field.c,v 1.52 2004/01/03 03:29:44 stpohle Exp $ */ /* field.c - procedures which are needed to control the field */ #include "bomberclone.h" @@ -482,7 +482,7 @@ field_hurrysize () if (map.field[fieldhurrypos.x][fieldhurrypos.y].ex[d].count > 0) i++; - get_bomb_on (fieldhurrypos.x << 8, fieldhurrypos.y << 8, bombs); + get_bomb_on (fieldhurrypos.x, fieldhurrypos.y, bombs); if (i) fieldhurrypos = old; else if (bombs[0].y != -1 && bombs[0].x != -1) { diff --git a/src/player.c b/src/player.c index 5094104..cfae9aa 100644 --- a/src/player.c +++ b/src/player.c @@ -1,4 +1,4 @@ -/* $Id: player.c,v 1.56 2004/01/03 02:12:34 stpohle Exp $ +/* $Id: player.c,v 1.57 2004/01/03 03:29:44 stpohle Exp $ * player.c - everything what have to do with the player */ #include @@ -227,6 +227,9 @@ check_field (short int x, short int y) int check_exfield (short int x, short int y) { int res = 1, i; + if (map.field[x][y].type == FT_stone || map.field[x][y].type == FT_block) + res = 0; + for (i = 0; (i < 4 && res == 1); i++) if (map.field[x][y].ex[i].count > 0) res = 0;