X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame_em%2Fsynchro_2.c;h=1ab59546bc14d613ef83c50f0916f547bb32707a;hb=36b674d2aef8799197255218ef893857f49cff18;hp=5079b7c253d7b31a8339f97aaf0b1b67bb99d46c;hpb=88c9b68c44a16e7df62557b63cc7e86731e028c9;p=rocksndiamonds.git diff --git a/src/game_em/synchro_2.c b/src/game_em/synchro_2.c index 5079b7c2..1ab59546 100644 --- a/src/game_em/synchro_2.c +++ b/src/game_em/synchro_2.c @@ -8,10 +8,7 @@ * compilers suck. */ -#include "display.h" -#include "tile.h" -#include "level.h" -#include "sample.h" +#include "main_em.h" #define RANDOM (random = random << 31 | random >> 1) @@ -44,15 +41,15 @@ static void set_nearest_player_xy(int x, int y, int *dx, int *dy) void synchro_2(void) { - register unsigned int x = 0; - register unsigned int y = 1; - register unsigned long random = RandomEM; - register unsigned short *cave_cache = Cave[y]; /* might be a win */ - unsigned long score = 0; - - unsigned int temp = 0; /* initialized to make compilers happy */ - unsigned int dx; /* only needed to find closest player */ - unsigned int dy; + int x = 0; + int y = 1; + unsigned long random = RandomEM; + short *cave_cache = Cave[y]; /* might be a win */ + int score = 0; + + int temp = 0; /* initialized to make compilers happy */ + int dx; /* only needed to find closest player */ + int dy; int element; loop: