X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finit.c;h=9937110a8a80808cda87047659324bca926ee5cb;hb=eff474825c141289a835a313dcd83fa1f461faab;hp=0d4c31396b6f0a3f6dd0b12b03ba3fd8af9c9663;hpb=4d3b0d040b3c5d397ac3b7a15f3d48c44d50e9dd;p=rocksndiamonds.git diff --git a/src/game_em/init.c b/src/game_em/init.c index 0d4c3139..9937110a 100644 --- a/src/game_em/init.c +++ b/src/game_em/init.c @@ -13,20 +13,9 @@ Bitmap *sprBitmap; Bitmap *screenBitmap; -char play[SAMPLE_MAX]; -int play_x[SAMPLE_MAX]; -int play_y[SAMPLE_MAX]; -int play_element[SAMPLE_MAX]; - struct GlobalInfo_EM global_em_info; struct GameInfo_EM game_em; -char *progname; -char *arg_basedir; - -extern void tab_generate(); -extern void tab_generate_graphics_info_em(); - int open_all(void) { Bitmap *emc_bitmaps[2]; @@ -39,20 +28,18 @@ int open_all(void) return 0; } -void InitGfxBuffers_EM() +void InitGfxBuffers_EM(void) { ReCreateBitmap(&screenBitmap, MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY); global_em_info.screenbuffer = screenBitmap; } -void em_open_all() +void em_open_all(void) { /* pre-calculate some data */ tab_generate(); - progname = "emerald mine"; - if (open_all() != 0) Error(ERR_EXIT, "em_open_all(): open_all() failed"); @@ -81,10 +68,6 @@ void play_sound(int x, int y, int sample) play_element_sound(x, y, sample, -1); } -void sound_play(void) -{ -} - unsigned int InitEngineRandom_EM(int seed) { if (seed == NEW_RANDOMIZE)