]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - trek/attack.c
Don't use literal ^G's in string constants. Use \a.
[bsdgames-darwin.git] / trek / attack.c
index 060376a914cd3f015746e8b11648e5de8c9ea045..6dbfc872b91deb1904f7e2f1b9c1ea4793d9c368 100644 (file)
@@ -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 @@ attack(int resting)
                        Ship.shield -= shldabsb;
                }
                /* actually do the hit */
-               printf("\aHIT: %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 @@ attack(int resting)
                Ship.energy -= hit;
                /* see if damages occurred */
                if (hit >= (15 - Game.skill) * (25 - ranf(12))) {
-                       printf("\aCRITICAL HIT!!!\a\n");
+                       printf("\aCRITICAL HIT!!!\a\n");
                        /* select a device from probability vector */
                        cas = ranf(1000);
                        for (l = 0; cas >= 0; l++)