summarylogtreecommitdiffstats
path: root/moon-lander-background.patch
diff options
context:
space:
mode:
authorMike Sampson2015-06-21 20:13:50 +1000
committerMike Sampson2015-06-21 20:13:50 +1000
commita6186d708b94b472c6937207a72d4efefb82495b (patch)
treed0fead99fd9b5ebfb8ab41f114cf041079ff45d4 /moon-lander-background.patch
downloadaur-moon-lander.tar.gz
Initial import
Diffstat (limited to 'moon-lander-background.patch')
-rw-r--r--moon-lander-background.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/moon-lander-background.patch b/moon-lander-background.patch
new file mode 100644
index 00000000000..239ba2fdd27
--- /dev/null
+++ b/moon-lander-background.patch
@@ -0,0 +1,25 @@
+--- moon-lander-1.0.orig/moon_lander.c 2007-03-10 23:07:38.000000000 +0100
++++ moon-lander-1.0/moon_lander.c 2007-03-10 23:14:50.000000000 +0100
+@@ -197,6 +197,8 @@
+ while (!done){
+ if ( files[count] = readdir(dir) ){
+
++ if ( files[count]->d_type & DT_DIR )
++ continue;
+ //printf("I see - %d %s\n", count, files[count]->d_name);
+ count++;
+ }
+@@ -222,12 +224,12 @@
+
+ game->back_no++;
+
+- if (game->back_no < 2){
+- game->back_no = 2;
++ if (game->back_no < 0){
++ game->back_no = 0;
+ }
+
+ if (game->back_no >= count){
+- game->back_no = 2;
++ game->back_no = 0;
+ }