bombdata dest was not converted to float..

origin
stpohle 19 years ago
parent ebae366c09
commit 8ff2d73fe6

@ -1052,8 +1052,8 @@ void do_bombdata (struct pkg_bombdata *b_dat, _net_addr * addr) {
}
bomb->mode = b_dat->state >> 4;
bomb->fdata = I16TOF (NTOH16 (b_dat->fdata));
bomb->dest.x = NTOH16 (b_dat->destx);
bomb->dest.y = NTOH16 (b_dat->desty);
bomb->dest.x = I16TOF (NTOH16 (b_dat->destx));
bomb->dest.y = I16TOF (NTOH16 (b_dat->desty));
if (bomb->state == BS_exploding)
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.h.flags = PKGF_ackreq;
b_dat.fdata = HTON16 (FTOI16 (bomb->fdata));
b_dat.destx = HTON16 (bomb->dest.x);
b_dat.desty = HTON16 (bomb->dest.y);
b_dat.destx = HTON16 (FTOI16 (bomb->dest.x));
b_dat.desty = HTON16 (FTOI16 (bomb->dest.y));
send_pkg ((struct pkg *) &b_dat, addr);
};

Loading…
Cancel
Save