Package: moon-lander
Version: 1:1.0-3
Severity: important
Tags: patch

The score for a successful landing should add the landing pad score and
the remaining fuel, however the remaining fuel is not added to the
score.

patch:

--- moon_lander.c.orig  2006-01-09 10:27:46.319222224 -0600
+++ moon_lander.c       2006-01-09 10:10:14.226164680 -0600
@@ -1206,7 +1206,7 @@
 
 void win (Game *game, int bonus) {
   
-  game->score += game->current_level.landing_score[game->landing_pad];
+  game->score += game->current_level.landing_score[game->landing_pad] + 
game->fuel;
 
 #ifndef NOSOUND
   Mix_HaltChannel(1); 

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages moon-lander depends on:
ii  libc6         2.3.2.ds1-22               GNU C Library: Shared libraries an
ii  libsdl-image1 1.2.4-1                    image loading library for Simple D
ii  libsdl-mixer1 1.2.6-1                    mixer library for Simple DirectMed
ii  libsdl1.2debi 1.2.7+1.2.8cvs20041007-4.1 Simple DirectMedia Layer
ii  moon-lander-d 1:1.0-3                    Data files (sound, images) for moo

-- no debconf information
--- moon_lander.c.orig  2006-01-09 10:27:46.319222224 -0600
+++ moon_lander.c       2006-01-09 10:10:14.226164680 -0600
@@ -1206,7 +1206,7 @@
 
 void win (Game *game, int bonus) {
   
-  game->score += game->current_level.landing_score[game->landing_pad];
+  game->score += game->current_level.landing_score[game->landing_pad] + 
game->fuel;
 
 #ifndef NOSOUND
   Mix_HaltChannel(1); 

Reply via email to