projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed support for wrap-around levels in EM engine
[rocksndiamonds.git]
/
src
/
game_em
/
convert.c
diff --git
a/src/game_em/convert.c
b/src/game_em/convert.c
index 9219e19774ee95b5ddbaeaa20ba28c11aebf64a3..59c9a81e2d95ded94a1071865a7172f19aa76573 100644
(file)
--- a/
src/game_em/convert.c
+++ b/
src/game_em/convert.c
@@
-277,7
+277,9
@@
void prepare_em_level(void)
lev.right = lev.left + lev.width;
lev.bottom = lev.top + lev.height;
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++)
{
/* add linked cave buffer columns for wrap-around movement */
for (x = 0; x < lev.left; x++)