projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19990130-2
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index c1691e61cb63635b48a9a71af671672b8ee2c6e5..52255c85d375483a062323e8a14af45c270c2161 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-405,16
+405,8
@@
void InitGame()
ScreenMovPos = 0;
ScreenGfxPos = 0;
ScreenMovPos = 0;
ScreenGfxPos = 0;
- if (level.high_speed)
- {
- MoveSpeed = 4;
- ScrollStepSize = TILEX/4;
- }
- else
- {
- MoveSpeed = 8;
- ScrollStepSize = TILEX/8;
- }
+ MoveSpeed = (level.double_speed ? 4 : 8);
+ ScrollStepSize = TILEX / MoveSpeed;
AllPlayersGone = FALSE;
SiebAktiv = FALSE;
AllPlayersGone = FALSE;
SiebAktiv = FALSE;
@@
-1083,6
+1075,7
@@
void Explode(int ex, int ey, int phase, int mode)
int num_phase = 9, delay = 2;
int last_phase = num_phase * delay;
int half_phase = (num_phase / 2) * delay;
int num_phase = 9, delay = 2;
int last_phase = num_phase * delay;
int half_phase = (num_phase / 2) * delay;
+ int first_phase_after_start = EX_PHASE_START + 1;
if (phase == EX_PHASE_START) /* initialize 'Store[][]' field */
{
if (phase == EX_PHASE_START) /* initialize 'Store[][]' field */
{
@@
-1197,9
+1190,20
@@
void Explode(int ex, int ey, int phase, int mode)
x = ex;
y = ey;
x = ex;
y = ey;
- Frame[x][y] = (phase
<last_phase ? phase+
1 : 0);
+ Frame[x][y] = (phase
< last_phase ? phase +
1 : 0);
- if (phase == half_phase)
+ if (phase == first_phase_after_start)
+ {
+ int element = Store2[x][y];
+
+ if (element == EL_BLACK_ORB)
+ {
+ Feld[x][y] = Store2[x][y];
+ Store2[x][y] = 0;
+ Bang(x, y);
+ }
+ }
+ else if (phase == half_phase)
{
int element = Store2[x][y];
{
int element = Store2[x][y];