field size smal down on hurry hurry didn\'t let the bombs explode.. is fixed.. problem was again a forgotten change to float

origin
stpohle 22 years ago
parent 93e01bc3b5
commit 732c0e5b14

@ -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 */ /* field.c - procedures which are needed to control the field */
#include "bomberclone.h" #include "bomberclone.h"
@ -482,7 +482,7 @@ field_hurrysize ()
if (map.field[fieldhurrypos.x][fieldhurrypos.y].ex[d].count > 0) if (map.field[fieldhurrypos.x][fieldhurrypos.y].ex[d].count > 0)
i++; i++;
get_bomb_on (fieldhurrypos.x << 8, fieldhurrypos.y << 8, bombs); get_bomb_on (fieldhurrypos.x, fieldhurrypos.y, bombs);
if (i) if (i)
fieldhurrypos = old; fieldhurrypos = old;
else if (bombs[0].y != -1 && bombs[0].x != -1) { else if (bombs[0].y != -1 && bombs[0].x != -1) {

@ -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 */ * player.c - everything what have to do with the player */
#include <SDL.h> #include <SDL.h>
@ -227,6 +227,9 @@ check_field (short int x, short int y)
int check_exfield (short int x, short int y) { int check_exfield (short int x, short int y) {
int res = 1, i; 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++) for (i = 0; (i < 4 && res == 1); i++)
if (map.field[x][y].ex[i].count > 0) if (map.field[x][y].ex[i].count > 0)
res = 0; res = 0;

Loading…
Cancel
Save