[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#411705: kasteroids: honour good shots



Package: kasteroids
Severity: wishlist
Verison: 4:3.5.5-1

Hi,

Would you please mind applying the following small patch to kasteroids so 
that people who hit an asteroid more often than not are awarded a bit more?  
Ammo is free in kasteroids, but wasting good ammo is still a crime.

Obviously, this bug is RC for etch.

cheers
-- vbi
diff -ru kasteroids.orig/toplevel.cpp kasteroids/toplevel.cpp
--- kasteroids.orig/toplevel.cpp	2005-09-10 10:18:34.000000000 +0200
+++ kasteroids/toplevel.cpp	2007-02-20 15:59:58.000000000 +0100
@@ -543,6 +543,10 @@
 {
     switch ( size )
     {
+        case -1:
+            score -= 1;
+            break;
+
 	case 0:
 	    score += 10;
 	     break;
diff -ru kasteroids.orig/view.cpp kasteroids/view.cpp
--- kasteroids.orig/view.cpp	2006-05-22 20:04:31.000000000 +0200
+++ kasteroids/view.cpp	2007-02-20 16:00:51.000000000 +0100
@@ -534,6 +534,7 @@
         if ( missile->expired() )
         {
             missiles.removeRef( missile );
+            emit rockHit( -1 );
             continue;
         }
 

Attachment: pgpvEHH2p9cbj.pgp
Description: PGP signature


Reply to: