From 2157d740b2ac324d4153d80cea410871c545c09e Mon Sep 17 00:00:00 2001 From: stpohle Date: Thu, 4 Sep 2003 20:18:21 +0000 Subject: [PATCH] bombmoving changed --- src/basic.h | 3 +-- src/bomb.c | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/basic.h b/src/basic.h index befa738..8d3b455 100644 --- a/src/basic.h +++ b/src/basic.h @@ -1,4 +1,4 @@ -/* $Id: basic.h,v 1.50 2003/08/29 22:04:19 stpohle Exp $ */ +/* $Id: basic.h,v 1.51 2003/09/04 20:18:21 stpohle Exp $ */ /* basic types which we need everywhere */ #ifndef _BC_BASIC_H_ @@ -25,7 +25,6 @@ #define SPECIAL_TRIGGER_TIME 25 #define SPECIAL_ROW_TIME 30 #define SPECIAL_PUSH_TIME 50 -// #define SPECIAL_DESTROY_NUMUSE 5 #define START_BOMBS 1 #define START_RANGE 2 diff --git a/src/bomb.c b/src/bomb.c index 7f399fb..ceff432 100644 --- a/src/bomb.c +++ b/src/bomb.c @@ -1,4 +1,4 @@ -/* $Id: bomb.c,v 1.43 2003/08/30 11:45:55 stpohle Exp $ */ +/* $Id: bomb.c,v 1.44 2003/09/04 20:18:21 stpohle Exp $ */ /* everything what have to do with the bombs */ #include "bomberclone.h" @@ -141,27 +141,27 @@ bomb_move (_bomb * bomb) bomb->dest.y = -bomb->dest.y; map.bfield[b.x][b.y] = 0; map.bfield[b.x+bomb->dest.x][b.y+bomb->dest.y] = 1; - - /* if a network game is running send bomb data with the - current information */ - if (GT_MP_PTP) { - int b = -1, i = 0; - - do { - if (&bman.players[bman.p_nr].bombs[i] == bomb) - b = i; - i++; - } while (b == -1 && i < MAX_BOMBS); - - if (b != -1) - net_game_send_bomb (bman.p_nr, b); - } } else { /* stop moving this bomb */ keepdir = 0; bomb->mode = BM_normal; } + + /* if a network game is running send bomb data with the + current information */ + if (GT_MP_PTP) { + int b = -1, i = 0; + + do { + if (&bman.players[bman.p_nr].bombs[i] == bomb) + b = i; + i++; + } while (b == -1 && i < MAX_BOMBS); + + if (b != -1) + net_game_send_bomb (bman.p_nr, b); + } } } dist += step;