fixed support for wrap-around levels in EM engine
[rocksndiamonds.git] / src / game_em / convert.c
index 9219e19774ee95b5ddbaeaa20ba28c11aebf64a3..59c9a81e2d95ded94a1071865a7172f19aa76573 100644 (file)
@@ -277,7 +277,9 @@ void prepare_em_level(void)
   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++)