X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finit.c;h=3aa8361d4b600888d025b27791889a6f74e270da;hb=2e99b0c26d334eb287486b8933b52b5048c6cc0c;hp=12c0ad971940d636823dce2a89fd7273e992c18f;hpb=1d3eff06cde10309320341fa92abec5b14f1c6f6;p=rocksndiamonds.git diff --git a/src/game_em/init.c b/src/game_em/init.c index 12c0ad97..3aa8361d 100644 --- a/src/game_em/init.c +++ b/src/game_em/init.c @@ -5,13 +5,8 @@ #include "main_em.h" - #include -#if !defined(TARGET_SDL) -#include -#endif - Bitmap *objBitmap; Bitmap *sprBitmap; @@ -46,7 +41,7 @@ struct GameInfo_EM game_em; static int sound_pid = -1; int sound_pipe[2] = { -1, -1 }; /* for communication */ short *sound_data[SAMPLE_MAX]; /* pointer to sound data */ -long sound_length[SAMPLE_MAX]; /* length of sound data */ +int sound_length[SAMPLE_MAX]; /* length of sound data */ static const char *sound_names[SAMPLE_MAX] = { @@ -401,7 +396,7 @@ void sound_play(void) clear_mem(play, sizeof(play)); } -unsigned int InitEngineRandom_EM(long seed) +unsigned int InitEngineRandom_EM(int seed) { if (seed == NEW_RANDOMIZE) {