projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060203-1-src
[rocksndiamonds.git]
/
src
/
game_em
/
synchro_3.c
diff --git
a/src/game_em/synchro_3.c
b/src/game_em/synchro_3.c
index d47741f9a7a53cc1078ba3eceaccb6d2afae930f..449ecab094649ad72c2104835294bd8cb11f4b32 100644
(file)
--- a/
src/game_em/synchro_3.c
+++ b/
src/game_em/synchro_3.c
@@
-10,8
+10,6
@@
#include "sample.h"
#include "sample.h"
-#if defined(TARGET_X11)
-
void synchro_3(void)
{
register unsigned int x;
void synchro_3(void)
{
register unsigned int x;
@@
-24,8
+22,18
@@
void synchro_3(void)
if (lev.score > 9999)
lev.score = 9999;
if (lev.score > 9999)
lev.score = 9999;
+#if 0
+#if 1
+ if (lev.time_initial == 0)
+ lev.time++;
+ else if (lev.time > 0)
+ lev.time--;
+#else
if (lev.time)
lev.time--;
if (lev.time)
lev.time--;
+#endif
+#endif
+
if (lev.android_move_cnt-- == 0)
lev.android_move_cnt = lev.android_move_time;
if (lev.android_clone_cnt-- == 0)
if (lev.android_move_cnt-- == 0)
lev.android_move_cnt = lev.android_move_time;
if (lev.android_clone_cnt-- == 0)
@@
-44,17
+52,20
@@
void synchro_3(void)
if (lev.wonderwall_time && lev.wonderwall_state)
lev.wonderwall_time--;
if (lev.wonderwall_time && lev.wonderwall_state)
lev.wonderwall_time--;
- if (lev.time > 0 && lev.time <= 50 && lev.time % 5 == 0)
- play[SAMPLE_time] = 1;
+#if 0
+ if (lev.time_initial > 0 &&
+ lev.time > 0 && lev.time <= 50 && lev.time % 5 == 0 && setup.time_limit)
+ play_sound(-1, -1, SAMPLE_time);
+#endif
if (lev.wheel_cnt)
if (lev.wheel_cnt)
- play
[SAMPLE_wheel] = 1
;
+ play
_element_sound(lev.wheel_x, lev.wheel_y, SAMPLE_wheel, Xwheel)
;
- /* grow am
eu
ba */
+ /* grow am
oe
ba */
- random = Random;
+ random = Random
EM
;
- for (count = lev.am
eu
ba_time; count--;)
+ for (count = lev.am
oe
ba_time; count--;)
{
x = (random >> 10) % (WIDTH - 2);
y = (random >> 20) % (HEIGHT - 2);
{
x = (random >> 10) % (WIDTH - 2);
y = (random >> 20) % (HEIGHT - 2);
@@
-68,17
+79,17
@@
void synchro_3(void)
case Xsand:
case Xplant:
case Yplant:
case Xsand:
case Xplant:
case Yplant:
- if (tab_am
eu
ba[Cave[y-1][x]] ||
- tab_am
eu
ba[Cave[y][x+1]] ||
- tab_am
eu
ba[Cave[y+1][x]] ||
- tab_am
eu
ba[Cave[y][x-1]])
+ if (tab_am
oe
ba[Cave[y-1][x]] ||
+ tab_am
oe
ba[Cave[y][x+1]] ||
+ tab_am
oe
ba[Cave[y+1][x]] ||
+ tab_am
oe
ba[Cave[y][x-1]])
Cave[y][x] = Xdrip_eat;
}
random = random * 129 + 1;
}
Cave[y][x] = Xdrip_eat;
}
random = random * 129 + 1;
}
- Random = random;
+ Random
EM
= random;
/* handle explosions */
/* handle explosions */
@@
-119,5
+130,3
@@
void synchro_3(void)
for (x = 0; x < WIDTH; x++)
Next[y][x] = Cave[y][x];
}
for (x = 0; x < WIDTH; x++)
Next[y][x] = Cave[y][x];
}
-
-#endif