Prevent multiple assigment to game.bonus in blast
This commit is contained in:
parent
adab8e2190
commit
0a04293f23
1 changed files with 5 additions and 4 deletions
|
@ -230,15 +230,16 @@ static int bigwords(long id)
|
|||
static void blast(void)
|
||||
/* Blast. No effect unless you've got dynamite, which is a neat trick! */
|
||||
{
|
||||
if (game.prop[ROD2] < 0 ||
|
||||
if (game.prop[ROD2] == STATE_NOTFOUND ||
|
||||
!game.closed)
|
||||
rspeak(REQUIRES_DYNAMITE);
|
||||
else {
|
||||
game.bonus = VICTORY_MESSAGE;
|
||||
if (game.loc == LOC_NE)
|
||||
game.bonus = DEFEAT_MESSAGE;
|
||||
if (HERE(ROD2))
|
||||
game.bonus = SPLATTER_MESSAGE;
|
||||
else if (game.loc == LOC_NE)
|
||||
game.bonus = DEFEAT_MESSAGE;
|
||||
else
|
||||
game.bonus = VICTORY_MESSAGE;
|
||||
rspeak(game.bonus);
|
||||
terminate(endgame);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue