Module Name:    src
Committed By:   dholland
Date:           Sun May 24 21:55:24 UTC 2009

Modified Files:
        src/games/trek: attack.c snova.c

Log Message:
Don't use literal ^G's in string constants. Use \a.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/games/trek/attack.c src/games/trek/snova.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/trek/attack.c
diff -u src/games/trek/attack.c:1.7 src/games/trek/attack.c:1.8
--- src/games/trek/attack.c:1.7	Sun May 24 21:44:56 2009
+++ src/games/trek/attack.c	Sun May 24 21:55:24 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: attack.c,v 1.7 2009/05/24 21:44:56 dholland Exp $	*/
+/*	$NetBSD: attack.c,v 1.8 2009/05/24 21:55:24 dholland Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)attack.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: attack.c,v 1.7 2009/05/24 21:44:56 dholland Exp $");
+__RCSID("$NetBSD: attack.c,v 1.8 2009/05/24 21:55:24 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -132,7 +132,7 @@
 			Ship.shield -= shldabsb;
 		}
 		/* actually do the hit */
-		printf("HIT: %d units", hit);
+		printf("\aHIT: %d units", hit);
 		if (!damaged(SRSCAN))
 			printf(" from %d,%d", Etc.klingon[i].x, Etc.klingon[i].y);
 		cas = (shldabsb * 100) / hit;
@@ -148,7 +148,7 @@
 		Ship.energy -= hit;
 		/* see if damages occurred */
 		if (hit >= (15 - Game.skill) * (25 - ranf(12))) {
-			printf("CRITICAL HIT!!!\n");
+			printf("\aCRITICAL HIT!!!\a\n");
 			/* select a device from probability vector */
 			cas = ranf(1000);
 			for (l = 0; cas >= 0; l++)
Index: src/games/trek/snova.c
diff -u src/games/trek/snova.c:1.7 src/games/trek/snova.c:1.8
--- src/games/trek/snova.c:1.7	Sun May 24 21:44:56 2009
+++ src/games/trek/snova.c	Sun May 24 21:55:24 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: snova.c,v 1.7 2009/05/24 21:44:56 dholland Exp $	*/
+/*	$NetBSD: snova.c,v 1.8 2009/05/24 21:55:24 dholland Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)snova.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: snova.c,v 1.7 2009/05/24 21:44:56 dholland Exp $");
+__RCSID("$NetBSD: snova.c,v 1.8 2009/05/24 21:55:24 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -107,7 +107,7 @@
 	}
 	if (f) {
 		/* supernova is in same quadrant as Enterprise */
-		printf("\nRED ALERT: supernova occuring at %d,%d\n", ix, iy);
+		printf("\a\nRED ALERT: supernova occuring at %d,%d\n", ix, iy);
 		dx = ix - Ship.sectx;
 		dy = iy - Ship.secty;
 		if (dx * dx + dy * dy <= 2) {

Reply via email to