do_bombdata fixed.. had problems with 16bit integers

origin
stpohle 23 years ago
parent 0f6d342198
commit c0a74a77da

@ -602,9 +602,9 @@ do_bombdata (struct pkg_bombdata *b_dat, _net_addr * addr)
d_printf ("do_bombdata WARNING : bomb explosion haven't finished\n");
if (bomb->state == BS_ticking && b_dat->state == BS_ticking) { // handle push & kick special
bman.bfield[bomb->pos.x][bomb->pos.y] = 0; //remove bomb at old location
draw_stone (bomb->pos.x, bomb->pos.y);
field_update (bomb->pos.x, bomb->pos.y);
bman.bfield[(bomb->pos.x >> 8)][(bomb->pos.y >> 8)] = 0; //remove bomb at old location
draw_stone (bomb->pos.x >> 8, bomb->pos.y >> 8);
field_update (bomb->pos.x >> 8, bomb->pos.y >> 8);
}
if (bomb->state == BS_off && (b_dat->state == BS_ticking || b_dat->state == BS_trigger))

Loading…
Cancel
Save