|
|
@ -1052,8 +1052,8 @@ void do_bombdata (struct pkg_bombdata *b_dat, _net_addr * addr) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bomb->mode = b_dat->state >> 4;
|
|
|
|
bomb->mode = b_dat->state >> 4;
|
|
|
|
bomb->fdata = I16TOF (NTOH16 (b_dat->fdata));
|
|
|
|
bomb->fdata = I16TOF (NTOH16 (b_dat->fdata));
|
|
|
|
bomb->dest.x = NTOH16 (b_dat->destx);
|
|
|
|
bomb->dest.x = I16TOF (NTOH16 (b_dat->destx));
|
|
|
|
bomb->dest.y = NTOH16 (b_dat->desty);
|
|
|
|
bomb->dest.y = I16TOF (NTOH16 (b_dat->desty));
|
|
|
|
|
|
|
|
|
|
|
|
if (bomb->state == BS_exploding)
|
|
|
|
if (bomb->state == BS_exploding)
|
|
|
|
bomb_explode (bomb, 0);
|
|
|
|
bomb_explode (bomb, 0);
|
|
|
@ -1079,8 +1079,8 @@ send_bombdata (_net_addr * addr, int p, int b, _bomb * bomb)
|
|
|
|
b_dat.p_nr = p;
|
|
|
|
b_dat.p_nr = p;
|
|
|
|
b_dat.h.flags = PKGF_ackreq;
|
|
|
|
b_dat.h.flags = PKGF_ackreq;
|
|
|
|
b_dat.fdata = HTON16 (FTOI16 (bomb->fdata));
|
|
|
|
b_dat.fdata = HTON16 (FTOI16 (bomb->fdata));
|
|
|
|
b_dat.destx = HTON16 (bomb->dest.x);
|
|
|
|
b_dat.destx = HTON16 (FTOI16 (bomb->dest.x));
|
|
|
|
b_dat.desty = HTON16 (bomb->dest.y);
|
|
|
|
b_dat.desty = HTON16 (FTOI16 (bomb->dest.y));
|
|
|
|
|
|
|
|
|
|
|
|
send_pkg ((struct pkg *) &b_dat, addr);
|
|
|
|
send_pkg ((struct pkg *) &b_dat, addr);
|
|
|
|
};
|
|
|
|
};
|
|
|
|