Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/hack rename a variable from "time" to "stime" (it's a ...
details: https://anonhg.NetBSD.org/src/rev/319edbde5468
branches: trunk
changeset: 766790:319edbde5468
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Jul 02 02:09:08 2011 +0000
description:
rename a variable from "time" to "stime" (it's a string)
diffstat:
games/hack/hack.wield.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r be363aed7d17 -r 319edbde5468 games/hack/hack.wield.c
--- a/games/hack/hack.wield.c Sat Jul 02 01:26:29 2011 +0000
+++ b/games/hack/hack.wield.c Sat Jul 02 02:09:08 2011 +0000
@@ -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 @@
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 @@
}
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;
Home |
Main Index |
Thread Index |
Old Index