projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added hiding selection list style setup options marked with '.hide'
[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 230a907c3ba27242140577139753a4e8d705d1f5..ca83a820d2fdcad18834058d06a166dbabf2ba36 100644
(file)
--- a/
src/game_em/synchro_3.c
+++ b/
src/game_em/synchro_3.c
@@
-5,25
+5,21
@@
* this should be spread over the frames for reduced cpu load.
*/
* this should be spread over the frames for reduced cpu load.
*/
-#include "tile.h"
-#include "level.h"
-#include "sample.h"
+#include "main_em.h"
void synchro_3(void)
{
void synchro_3(void)
{
-
register unsigned
int x;
-
register unsigned
int y;
-
register unsigned
int count;
-
register unsigned long
random;
+ int x;
+ int y;
+ int count;
+
unsigned int
random;
/* update variables */
if (lev.score > 9999)
lev.score = 9999;
/* update variables */
if (lev.score > 9999)
lev.score = 9999;
- if (lev.time)
- lev.time--;
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)
@@
-42,17
+38,14
@@
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 (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);
@@
-66,17
+59,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 */