X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finput.c;h=172d69890351a55bcd60b84279d6911a071e3ea8;hb=c1dca83f9655759c36e3e5e9e95739d46c55c894;hp=ae3e1d554d0f93c50fa5f3a1bea9a84848817ffc;hpb=88c9b68c44a16e7df62557b63cc7e86731e028c9;p=rocksndiamonds.git diff --git a/src/game_em/input.c b/src/game_em/input.c index ae3e1d55..172d6989 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -13,16 +13,16 @@ unsigned long RandomEM; struct LEVEL lev; struct PLAYER ply[MAX_PLAYERS]; -unsigned short **Boom; -unsigned short **Cave; -unsigned short **Next; -unsigned short **Draw; +short **Boom; +short **Cave; +short **Next; +short **Draw; -static unsigned short *Index[4][HEIGHT]; -static unsigned short Array[4][HEIGHT][WIDTH]; +static short *Index[4][HEIGHT]; +static short Array[4][HEIGHT][WIDTH]; -extern unsigned int screen_x; -extern unsigned int screen_y; +extern int screen_x; +extern int screen_y; void game_init_vars(void) { @@ -191,8 +191,8 @@ void GameActions_EM(byte action) void readjoy(byte action, struct PLAYER *ply) { - unsigned int north = 0, east = 0, south = 0, west = 0; - unsigned int snap = 0, drop = 0; + int north = 0, east = 0, south = 0, west = 0; + int snap = 0, drop = 0; if (action & JOY_LEFT) west = 1; @@ -228,8 +228,8 @@ void readjoy(byte action, struct PLAYER *ply) void readjoy(byte action) { - unsigned int north = 0, east = 0, south = 0, west = 0; - unsigned int snap = 0, drop = 0; + int north = 0, east = 0, south = 0, west = 0; + int snap = 0, drop = 0; if (action & JOY_LEFT) west = 1;