tigger over, set bombs to ma max timeout of 5 seconds

origin
stpohle 23 years ago
parent cd0af836ed
commit 1a3578e3f8

@ -1,3 +1,5 @@
$Id: ChangeLog,v 1.24 2003/07/13 00:08:25 stpohle Exp $
Version 0.9.9 Version 0.9.9
============= =============

@ -1,3 +1,5 @@
$Id: TODO,v 1.8 2003/07/13 00:08:25 stpohle Exp $
this version (fix2): this version (fix2):
==================== ====================

@ -1,3 +1,4 @@
/* $Id: basic.h,v 1.35 2003/07/13 00:08:25 stpohle Exp $ */
/* basic types which we need everywhere */ /* basic types which we need everywhere */
#ifndef _BC_BASIC_H_ #ifndef _BC_BASIC_H_

@ -1,3 +1,4 @@
/* $Id: bomb.c,v 1.33 2003/07/13 00:08:26 stpohle Exp $ */
/* everything what have to do with the bombs */ /* everything what have to do with the bombs */
#include "bomberclone.h" #include "bomberclone.h"

@ -1,9 +1,9 @@
/* $Id: special.c,v 1.20 2003/07/13 00:08:26 stpohle Exp $ */
/* special.c - procedues to control the specials */ /* special.c - procedues to control the specials */
#include "bomberclone.h" #include "bomberclone.h"
#include "basic.h" #include "basic.h"
void void
special_trigger (int p_nr) special_trigger (int p_nr)
{ {
@ -181,6 +181,21 @@ special_pickup (int p_nr, int s_nr)
void void
special_clear (int p_nr) special_clear (int p_nr)
{ {
if ( bman.players[p_nr].special.type == SP_trigger ) {
_bomb *bomb;
int i;
/* put all bombs to normal and if the timeout is higher as usual
set it to normal */
for (i = 0; i < MAX_BOMBS; i++) {
bomb = &bman.players[p_nr].bombs[i];
if (bomb->state == BS_trigger) {
bomb->state = BS_ticking;
if (bomb->to > BOMB_TIMEOUT * TIME_FACTOR)
bomb->to = BOMB_TIMEOUT * TIME_FACTOR; // 5 Secs * 200
}
}
}
bman.players[p_nr].special.type = 0; bman.players[p_nr].special.type = 0;
bman.updatestatusbar = 1; bman.updatestatusbar = 1;
} }

Loading…
Cancel
Save