From 6acb63e10432d8c2f56ed73034b5b692d6a6fc49 Mon Sep 17 00:00:00 2001 From: stpohle Date: Tue, 6 Jan 2004 00:03:01 +0000 Subject: [PATCH] next try to fix this illness problem, that the bombs and range just disapear. --- src/player.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/player.c b/src/player.c index 80f8670..30ecf81 100644 --- a/src/player.c +++ b/src/player.c @@ -1,4 +1,4 @@ -/* $Id: player.c,v 1.61 2004/01/04 22:15:41 stpohle Exp $ +/* $Id: player.c,v 1.62 2004/01/06 00:03:01 stpohle Exp $ * player.c - everything what have to do with the player */ #include @@ -715,13 +715,13 @@ player_set_ilness (_player * p, int t) p->speed = ILL_FASTSPEED; break; case PI_range: - if (p->ill[type].to == 0) + if (p->ill[type].to <= 0.0f) p->ill[type].datai = p->range; d_printf ("player_set_ilness PI_range %d\n", p->ill[type].datai); p->range = 1; break; case PI_nobomb: - if (p->ill[type].to == 0) + if (p->ill[type].to <= 0.0f) p->ill[type].datai = p->bombs_n; d_printf ("player_set_ilness PI_nobomb %d\n", p->ill[type].datai); p->bombs_n = s_random (2); @@ -755,7 +755,7 @@ player_clear_ilness (_player * p, int type) p->bombs_n = p->ill[type].datai; break; } - p->ill[type].to = 0.0; + p->ill[type].to = 0.0f; if (GT_MP) net_game_send_ill (bman.p_nr); bman.updatestatusbar = 1;