* large switch statement for tiles the player interacts with.
*/
-#include "tile.h"
-#include "level.h"
-#include "sample.h"
-#include "display.h"
+#include "main_em.h"
+#if 0
extern int centered_player_nr;
+#endif
+
extern boolean checkIfAllPlayersFitToScreen();
static void check_player(struct PLAYER *);
int anim = 0;
int dx = 0, dy = 0;
+ game_em.last_player_direction[ply->num] = MV_NONE;
+
#if 0
printf("::: up == %d, down == %d, left == %d, right == %d, fire == %d [spin == %d, stick == %d]\n",
ply->joy_n, ply->joy_s, ply->joy_w, ply->joy_e, ply->joy_fire,
ply->x = x;
ply->y = y;
- can_move = (centered_player_nr != -1 || checkIfAllPlayersFitToScreen());
+ can_move = (game.centered_player_nr != -1 ||
+ checkIfAllPlayersFitToScreen());
ply->x = oldx;
ply->y = oldy;