X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;fp=src%2Fgame.c;h=9af32646b4161d64904a9dfeaaefeaa2945ef773;hp=6d5ca5bc30f068ad08f84f09564a5fb1947a9dd8;hb=c27d6982a3c8e3ce85d4c974af6465f5cf1855b0;hpb=d0893e6987c21c25ec137438a18cfe1288362139 diff --git a/src/game.c b/src/game.c index 6d5ca5bc..9af32646 100644 --- a/src/game.c +++ b/src/game.c @@ -82,6 +82,7 @@ void LoadLevelInfo() char filename[MAX_FILENAME]; char cookie[MAX_FILENAME]; FILE *file; + int ignored; sprintf(filename,"%s/%s",LEVEL_PATH,LEVDIR_FILENAME); @@ -91,7 +92,7 @@ void LoadLevelInfo() CloseAll(); } - fscanf(file,"%s\n",cookie); + ignored = fscanf(file,"%s\n",cookie); if (strcmp(cookie,LEVELDIR_COOKIE)) /* ungültiges Format? */ { fprintf(stderr,"%s: wrong format of level info file!\n",progname); @@ -103,10 +104,10 @@ void LoadLevelInfo() leveldir_nr = 0; for(i=0;i0 && DelayReached(&time_delay,100) && !tape.pausing) @@ -2343,7 +2349,7 @@ BOOL MoveFigureOneStep(int dx, int dy) BOOL MoveFigure(int dx, int dy) { - static long move_delay = 0; + static int move_delay = 0; int moved = MF_NO_ACTION; if (GameOver || (!dx && !dy)) @@ -2490,7 +2496,7 @@ int DigField(int x, int y, int mode) { int dx=x-JX, dy=y-JY; int element; - static long push_delay = 0; + static int push_delay = 0; static int push_delay_value = 20; if (mode==DF_NO_PUSH) @@ -2898,7 +2904,7 @@ void TapeErase() tape.length = 0; } -void DrawVideoDisplay(unsigned long state, unsigned long value) +void DrawVideoDisplay(unsigned int state, unsigned int value) { int i; int part1 = 0, part2 = 1; @@ -3024,7 +3030,7 @@ void DrawVideoDisplay(unsigned long state, unsigned long value) redraw_mask |= REDRAW_VIDEO_3; } -void DrawSoundDisplay(unsigned long state) +void DrawSoundDisplay(unsigned int state) { int pos, cx = DOOR_GFX_PAGEX4, cy = 0; @@ -3046,7 +3052,7 @@ void DrawSoundDisplay(unsigned long state) redraw_mask |= REDRAW_DOOR_1; } -void DrawGameButton(unsigned long state) +void DrawGameButton(unsigned int state) { int pos, cx = DOOR_GFX_PAGEX4, cy = -GAME_BUTTON_YSIZE; @@ -3065,7 +3071,7 @@ void DrawGameButton(unsigned long state) redraw_mask |= REDRAW_DOOR_1; } -void DrawChooseButton(unsigned long state) +void DrawChooseButton(unsigned int state) { int pos, cx = DOOR_GFX_PAGEX4, cy = 0; @@ -3082,7 +3088,7 @@ void DrawChooseButton(unsigned long state) redraw_mask |= REDRAW_DOOR_1; } -void DrawConfirmButton(unsigned long state) +void DrawConfirmButton(unsigned int state) { int cx = DOOR_GFX_PAGEX4, cy = 0;