bombmoving changed

origin
stpohle 22 years ago
parent 2dcfddffd6
commit 2157d740b2

@ -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

@ -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,6 +141,12 @@ 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;
}
else {
/* stop moving this bomb */
keepdir = 0;
bomb->mode = BM_normal;
}
/* if a network game is running send bomb data with the
current information */
@ -157,12 +163,6 @@ bomb_move (_bomb * bomb)
net_game_send_bomb (bman.p_nr, b);
}
}
else {
/* stop moving this bomb */
keepdir = 0;
bomb->mode = BM_normal;
}
}
}
dist += step;
} while (dist < bomb->speed && (bomb->mode == BM_liquid || bomb->mode == BM_moving) && keepdir);

Loading…
Cancel
Save