aboutsummaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2003-03-27 05:48:07 +0000
committerH. Peter Anvin <hpa@zytor.com>2003-03-27 05:48:07 +0000
commitc3aadb29c59e52d4a7cca3a1dc269a3c388695ff (patch)
tree70717210b8c0eca3805aac26f8c3d814b4f46247 /action.c
parenta809fe7de5acf2bfd4bfe223b33d49b6daf67afb (diff)
downloadgrv-c3aadb29c59e52d4a7cca3a1dc269a3c388695ff.tar.gz
grv-c3aadb29c59e52d4a7cca3a1dc269a3c388695ff.tar.xz
grv-c3aadb29c59e52d4a7cca3a1dc269a3c388695ff.zip
Fix lots of little bugs
Diffstat (limited to 'action.c')
-rw-r--r--action.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/action.c b/action.c
index 1e27fe2..602d6c2 100644
--- a/action.c
+++ b/action.c
@@ -113,6 +113,9 @@ static void blow_bomb(int x, int y, int smash)
int ch, m, f, fl;
int erase;
+ if ( !smash )
+ gp.Bombs--;
+
pattern = smash
? (rnd() < 0.1 ? big_smash_pattern : smash_pattern)
: bomb_pattern;
@@ -285,13 +288,9 @@ void handle_action(void)
case act_droplevel:
gp.ZLevel--;
- color(0,gp.c);
- if ( gp.ZLevel > 0 ) {
+ update_jump();
+ if ( gp.ZLevel > 0 )
addaction(0, 0, gp.Tid+10.0, act_droplevel);
- lprintf(25, 2, "JUMP TO %-2d", gp.ZLevel+1);
- } else {
- lprint(25, 2, " ");
- }
break;
case act_door: