projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added separate playfield and buffer sizes for EM engine caves
[rocksndiamonds.git]
/
src
/
game_em
/
logic.c
diff --git
a/src/game_em/logic.c
b/src/game_em/logic.c
index da397d56e98a1c38c23f508f26ea32b917b7c242..df027b63801af736538c29a95be9efd6956b3225 100644
(file)
--- a/
src/game_em/logic.c
+++ b/
src/game_em/logic.c
@@
-6273,8
+6273,8
@@
void logic_2(void)
seed = RandomEM;
score = 0;
seed = RandomEM;
score = 0;
- for (y = 1; y < CAVE_HEIGHT - 1; y++)
- for (x = 0; x < CAVE_WIDTH; x++)
+ for (y = 1; y < CAVE_
BUFFER_
HEIGHT - 1; y++)
+ for (x = 0; x < CAVE_
BUFFER_
WIDTH; x++)
handle_tile(x, y);
if (ply[0].alive || ply[1].alive || ply[2].alive || ply[3].alive)
handle_tile(x, y);
if (ply[0].alive || ply[1].alive || ply[2].alive || ply[3].alive)
@@
-6334,8
+6334,8
@@
void logic_3(void)
for (count = lev.amoeba_time; count--;)
{
for (count = lev.amoeba_time; count--;)
{
- x = (random >> 10) % (CAVE_WIDTH - 2);
- y = (random >> 20) % (CAVE_HEIGHT - 2);
+ x = (random >> 10) % (CAVE_
BUFFER_
WIDTH - 2);
+ y = (random >> 20) % (CAVE_
BUFFER_
HEIGHT - 2);
Lamoeba(x, y);
Lamoeba(x, y);
@@
-6346,13
+6346,13
@@
void logic_3(void)
/* handle explosions */
/* handle explosions */
- for (y = 1; y < CAVE_HEIGHT - 1; y++)
- for (x = 1; x < CAVE_WIDTH - 1; x++)
+ for (y = 1; y < CAVE_
BUFFER_
HEIGHT - 1; y++)
+ for (x = 1; x < CAVE_
BUFFER_
WIDTH - 1; x++)
Lexplode(x, y);
/* triple buffering */
Lexplode(x, y);
/* triple buffering */
- for (y = 0; y < CAVE_HEIGHT; y++)
- for (x = 0; x < CAVE_WIDTH; x++)
+ for (y = 0; y < CAVE_
BUFFER_
HEIGHT; y++)
+ for (x = 0; x < CAVE_
BUFFER_
WIDTH; x++)
next[x][y] = cave[x][y];
}
next[x][y] = cave[x][y];
}