blob: 20582af26cb79f07f65421b091fa9c9ced354447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <element.h>
int update_GBMB(UPDATE_FUNC_ARGS) {
int rx,ry,r;
for (rx=-2; rx<3; rx++)
for (ry=-2; ry<3; ry++){
r = pmap[y+ry][x+rx];
if(r)
if((r&0xFF)!=PT_BOMB&&
(r&0xFF)!=PT_GBMB&&
(r&0xFF)!=PT_CLNE&&
(r&0xFF)!=PT_PCLN&&
!parts[i].tmp){
parts[i].life=100;
parts[i].tmp = 1;
}
}
if(parts[i].life>1)
gravmap[y/CELL][x/CELL] = -20;
return 0;
}
|