X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fconvert.c;h=c5f563b2397ca4012d752b959becd298e89f86df;hb=050269ccfc40b94a2255939df38831d2c75340d3;hp=32c4b600b4b4e30a45a951de37edb5d23d135175;hpb=4e4b7a3f5581e495af3d0bcf0ca8bb5424306a52;p=rocksndiamonds.git diff --git a/src/game_em/convert.c b/src/game_em/convert.c index 32c4b600..c5f563b2 100644 --- a/src/game_em/convert.c +++ b/src/game_em/convert.c @@ -454,8 +454,10 @@ int cleanup_em_level(unsigned char *src, int length, char *filename) /* size of v6 cave */ length = 2172; +#if 0 if (options.debug) - printf("::: EM level file version: %d\n", file_version); + Error(ERR_DEBUG, "EM level file version: %d", file_version); +#endif return file_version; } @@ -1107,11 +1109,15 @@ void prepare_em_level(void) ply[i].joy_stick = ply[i].joy_spin = 0; } + // the following engine variables are initialized to version-specific values + // in function InitGameEngine() (src/game.c): + // + // - game_em.use_single_button (default: TRUE) + // - game_em.use_snap_key_bug (default: FALSE) + game_em.any_player_moving = FALSE; game_em.any_player_snapping = FALSE; - game_em.use_single_button = game_em.use_single_button_initial = TRUE; - game_em.last_moving_player = 0; /* default: first player */ for (i = 0; i < MAX_PLAYERS; i++)