|
|
@ -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;
|
|
|
|