Package: gravitywars / 1.102-34

010_comments.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Index: gravitywars-1.102/control.c
===================================================================
--- gravitywars-1.102.orig/control.c	1996-08-25 10:55:29.000000000 +0200
+++ gravitywars-1.102/control.c	2006-05-16 06:33:59.000000000 +0200
@@ -6,10 +6,10 @@
  
 /*------------------------------------------------------------------ control */
 /* The control & moveship routines contain really bad code because
-/* they have been changed too many times since the start of the project...
-/* I wish I had written them from scratch after the n:th change... 
-/* As you see some of the routines take the ship # as an argument =>
-/* the game was going to be a multiuser game, but lazy as i am..            */
+ * they have been changed too many times since the start of the project...
+ * I wish I had written them from scratch after the n:th change... 
+ * As you see some of the routines take the ship # as an argument =>
+ * the game was going to be a multiuser game, but lazy as i am..            */
 
 void control(short nr) {
 
Index: gravitywars-1.102/hole.c
===================================================================
--- gravitywars-1.102.orig/hole.c	1996-08-25 10:55:30.000000000 +0200
+++ gravitywars-1.102/hole.c	2006-05-16 06:33:20.000000000 +0200
@@ -4,7 +4,7 @@
 
 /*-----------------------------------------------------------------setbullet */
 /* I think this one made holes just in the screen. Not in the virtual
-/* BlockMap.. I.e. They dissappear when flown over.. */
+ * BlockMap.. I.e. They dissappear when flown over.. */
 
 void OLDmakehole(int x, int y, int type) {
 
Index: gravitywars-1.102/init.c
===================================================================
--- gravitywars-1.102.orig/init.c	1996-12-21 15:00:57.000000000 +0100
+++ gravitywars-1.102/init.c	2006-05-16 06:34:01.000000000 +0200
@@ -110,8 +110,6 @@
   nextlevel[gamenamelen+12]=(levelnum/10)+'0';
   nextlevel[gamenamelen+13]=(levelnum%10)+'0';
   
-/*  printf("(Loading: %s)\n",nextlevel); */
-
   strcpy(tmp_nextlevel,nextlevel);
   strcpy(fname,tmp_nextlevel);
   strcpy(&fname[strlen(fname)],".dat");
Index: gravitywars-1.102/makepic.c
===================================================================
--- gravitywars-1.102.orig/makepic.c	1996-08-25 10:55:29.000000000 +0200
+++ gravitywars-1.102/makepic.c	2006-05-16 06:33:20.000000000 +0200
@@ -51,7 +51,7 @@
   wipe.active=255; /* Not Active */
 
 /* This routine writes the screen to stdout to produce
-/* a screen shot.. */
+ * a screen shot.. */
 /* SCREEN SHOT
   vga_setpage(0);
   mask=adr=0;
Index: gravitywars-1.102/memory.h
===================================================================
--- gravitywars-1.102.orig/memory.h	1996-08-25 10:55:29.000000000 +0200
+++ gravitywars-1.102/memory.h	2006-05-16 06:34:04.000000000 +0200
@@ -92,8 +92,8 @@
 extern long  delay_len;
 
 /* If you are running out of memory change the BSD routine
-/* I just didn't like performing 4 divisions by 10, or
-/* figuring out a better way... */
+ * I just didn't like performing 4 divisions by 10, or
+ * figuring out a better way... */
 extern long  Dec2BCD[100000];
 
 extern uchar ending,escape;
Index: gravitywars-1.102/moveship.c
===================================================================
--- gravitywars-1.102.orig/moveship.c	1996-08-25 10:40:29.000000000 +0200
+++ gravitywars-1.102/moveship.c	2006-05-16 06:34:05.000000000 +0200
@@ -7,8 +7,8 @@
 
 /*----------------------------------------------------------------- moveShip */
 /* Once again... This routine contains a lot of bad "undocumented" non logical
-/* code due to all the changes to the project that was never supposed to
-/* become a real game... */
+ * code due to all the changes to the project that was never supposed to
+ * become a real game... */
 
 int moveShip(short nr, unsigned char flag) {
 
@@ -175,6 +175,7 @@
       if ((ship_flag&1)==0) { /* If !ZERO => LAYING STILL */
 	
 	n=0;
+	/* FIXME: this loop sucks! */
 	for(yy=y; yy<=y2; yy++) {
 	  for(xx=x; xx<=x2; xx++) {
 	    n++;