rnd-20140515-2-src
[rocksndiamonds.git] / src / game_em / init.c
index 12c0ad971940d636823dce2a89fd7273e992c18f..3aa8361d4b600888d025b27791889a6f74e270da 100644 (file)
@@ -5,13 +5,8 @@
 
 #include "main_em.h"
 
-
 #include <signal.h>
 
-#if !defined(TARGET_SDL)
-#include <sys/wait.h>
-#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)
   {