From c0a74a77daf05f831ba464b38eb25d2d44197b0b Mon Sep 17 00:00:00 2001 From: stpohle Date: Sun, 1 Jun 2003 23:33:01 +0000 Subject: [PATCH] do_bombdata fixed.. had problems with 16bit integers --- src/packets.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/packets.c b/src/packets.c index a42784c..ab8da5b 100644 --- a/src/packets.c +++ b/src/packets.c @@ -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))