diff options
author | mrg <mrg@NetBSD.org> | 2011-07-02 02:09:08 +0000 |
---|---|---|
committer | mrg <mrg@NetBSD.org> | 2011-07-02 02:09:08 +0000 |
commit | 40aa1ec02e1bbd2b8ddb649f3d5dff0eeb0e3858 (patch) | |
tree | c378c2c74da96efad7c59583ade1baa08535d132 /hack | |
parent | 33dca4c652b90efaded20188a09b1f06c38f1e17 (diff) | |
download | bsdgames-darwin-40aa1ec02e1bbd2b8ddb649f3d5dff0eeb0e3858.tar.gz bsdgames-darwin-40aa1ec02e1bbd2b8ddb649f3d5dff0eeb0e3858.tar.zst bsdgames-darwin-40aa1ec02e1bbd2b8ddb649f3d5dff0eeb0e3858.zip |
rename a variable from "time" to "stime" (it's a string)
Diffstat (limited to 'hack')
-rw-r--r-- | hack/hack.wield.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hack/hack.wield.c b/hack/hack.wield.c index 7dd1e161..2a03b901 100644 --- a/hack/hack.wield.c +++ b/hack/hack.wield.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.wield.c,v 1.7 2009/06/07 18:30:39 dholland Exp $ */ +/* $NetBSD: hack.wield.c,v 1.8 2011/07/02 02:09:08 mrg Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.wield.c,v 1.7 2009/06/07 18:30:39 dholland Exp $"); +__RCSID("$NetBSD: hack.wield.c,v 1.8 2011/07/02 02:09:08 mrg Exp $"); #endif /* not lint */ #include "hack.h" @@ -131,7 +131,7 @@ int chwepon(struct obj *otmp, int amount) { const char *color = (amount < 0) ? "black" : "green"; - const char *time; + const char *stime; if (!uwep || uwep->olet != WEAPON_SYM) { strange_feeling(otmp, (amount > 0) ? "Your hands twitch." @@ -160,9 +160,9 @@ chwepon(struct obj *otmp, int amount) } if (!rn2(6)) amount *= 2; - time = (amount * amount == 1) ? "moment" : "while"; + stime = (amount * amount == 1) ? "moment" : "while"; pline("Your %s %s for a %s.", - aobjnam(uwep, "glow"), color, time); + aobjnam(uwep, "glow"), color, stime); uwep->spe += amount; if (amount > 0) uwep->cursed = 0; |