summaryrefslogtreecommitdiff
blob: 464cf59282072677c1b5c445400a0b3859990bff (plain)
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
Ripped from Debian patchset 6

--- src/include/game/game_data.h
+++ src/include/game/game_data.h
@@ -71,7 +71,7 @@
 typedef struct AI {
   int active;
   int tdiff;
-  long lasttime;
+  unsigned int lasttime;
 	segment2 left, right, front, backleft;
 } AI;
 
--- src/include/video/fonttex.h
+++ src/include/video/fonttex.h
@@ -10,7 +10,7 @@
   int lower; /* lowest ascii character (normally: 32) */
   int upper; /* highest ascii character (normally: 126) */
 
-  int *texID;
+  unsigned int *texID;
 
   char *fontname;
   char *bitmapname;
--- src/video/trail.c
+++ src/video/trail.c
@@ -19,7 +19,7 @@
   n[1] = s->vStart.v[1] - s->vDirection.v[0];
   tmp[0] = eye[0] - s->vStart.v[0];
   tmp[1] = eye[1] - s->vStart.v[1];
-  if(n[0] == n[1] == 0) return length(tmp);
+  if(n[0] == 0 && n[1] == 0) return length(tmp);
   return abs(scalarprod2(n, tmp) / length(n));
 }