Fixed initializing wrap-around levels in the EM game engine; this was
done when loading the cave, but using a run-time flag, which is not
set until starting the game.
This is a regression bug of commit
04c0f302.
lev.right = lev.left + lev.width;
lev.bottom = lev.top + lev.height;
- if (cav.infinite)
+ lev.infinite = game_em.use_wrap_around;
+
+ if (lev.infinite)
{
/* add linked cave buffer columns for wrap-around movement */
for (x = 0; x < lev.left; x++)
/* 0 == all players at home */
boolean testmode; /* test mode */
+ boolean infinite; /* flag for infinitely wide cave */
boolean killed_out_of_time; /* kill player due to time out */
int exit_x, exit_y; /* kludge for playing player exit sound */
cav.time_seconds = MIN(GET_BE16(src[2110]), 9999);
cav.gems_needed = src[2095];
- cav.infinite = game_em.use_wrap_around;
- cav.testmode = FALSE;
cav.teamwork = (src[2150] & 128) != 0;
/* scores */