client bombs got timeout reset for thier bombs

origin
stpohle 23 years ago
parent 89d2f4261b
commit 37bfb05729

@ -1,6 +1,12 @@
Version 0.9.9 Version 0.9.9
============= =============
2003-06-21: fix1 2003-06-21: fix1
- the last bomb who explode from a player won't anymore be
used right away. We only use it if there is no other bomb
free.
- bfield fixed on incoming bombdata packets
- network packet timeout set down to 400ms - network packet timeout set down to 400ms
- screen clipping of gfx_AddUpdateRect - screen clipping of gfx_AddUpdateRect
@ -11,7 +17,6 @@ Version 0.9.9
2003-06-12 2003-06-12
- PowerUps will be painted diffrent now. Depend - PowerUps will be painted diffrent now. Depend
on what it is. on what it is.

@ -617,7 +617,11 @@ do_bombdata (struct pkg_bombdata *b_dat, _net_addr * addr)
bomb->pos.x = b_dat->x; bomb->pos.x = b_dat->x;
bomb->pos.y = b_dat->y; bomb->pos.y = b_dat->y;
bomb->to = b_dat->to;
if (bomb->state != b_dat->state && bomb->state != BS_ticking)
bomb->to = b_dat->to; /* only set if the bomb isn't already ticking
to make sure the timeout won't be resetted
by an old network packet */
bman.bfield[bomb->pos.x >> 8][bomb->pos.y >> 8] = 1; // keep the bfield up to date bman.bfield[bomb->pos.x >> 8][bomb->pos.y >> 8] = 1; // keep the bfield up to date

Loading…
Cancel
Save