-/* $NetBSD: assorted.c,v 1.17 2009/03/14 22:52:52 dholland Exp $ */
+/* $NetBSD: assorted.c,v 1.19 2011/08/16 11:26:16 christos Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)assorted.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: assorted.c,v 1.17 2009/03/14 22:52:52 dholland Exp $");
+__RCSID("$NetBSD: assorted.c,v 1.19 2011/08/16 11:26:16 christos Exp $");
#endif
#endif /* not lint */
send_rigg(on, rigg[0], rigg[1], rigg[2], rigg[3]);
switch (shot) {
case L_ROUND:
- message = "firing round shot on $$";
+ message = "firing round";
break;
case L_GRAPE:
- message = "firing grape shot on $$";
+ message = "firing grape";
break;
case L_CHAIN:
- message = "firing chain shot on $$";
+ message = "firing chain";
break;
case L_DOUBLE:
- message = "firing double shot on $$";
+ message = "firing double";
break;
case L_EXPLODE:
- message = "exploding shot on $$";
+ message = "exploding";
break;
default:
errx(1, "Unknown shot type %d", shot);
}
- makesignal(from, message, on);
+ makesignal(from, "%s shot on $$", on, message);
if (roll == 6 && rig) {
switch(Rhit) {
case 0:
default:
errx(1, "Bad Rhit = %d", Rhit);
}
- makemsg(on, message);
+ makemsg(on, "%s", message);
} else if (roll == 6) {
switch (Hhit) {
case 0:
default:
errx(1, "Bad Hhit = %d", Hhit);
}
- makemsg(on, message);
+ makemsg(on, "%s", message);
}
/*
if (Chit > 1 && on->file->readyL & R_INITIAL &&