updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / gltron / gltron-0.70-debian.patch
blob464cf59282072677c1b5c445400a0b3859990bff
1 Ripped from Debian patchset 6
3 --- src/include/game/game_data.h
4 +++ src/include/game/game_data.h
5 @@ -71,7 +71,7 @@
6 typedef struct AI {
7 int active;
8 int tdiff;
9 - long lasttime;
10 + unsigned int lasttime;
11 segment2 left, right, front, backleft;
12 } AI;
14 --- src/include/video/fonttex.h
15 +++ src/include/video/fonttex.h
16 @@ -10,7 +10,7 @@
17 int lower; /* lowest ascii character (normally: 32) */
18 int upper; /* highest ascii character (normally: 126) */
20 - int *texID;
21 + unsigned int *texID;
23 char *fontname;
24 char *bitmapname;
25 --- src/video/trail.c
26 +++ src/video/trail.c
27 @@ -19,7 +19,7 @@
28 n[1] = s->vStart.v[1] - s->vDirection.v[0];
29 tmp[0] = eye[0] - s->vStart.v[0];
30 tmp[1] = eye[1] - s->vStart.v[1];
31 - if(n[0] == n[1] == 0) return length(tmp);
32 + if(n[0] == 0 && n[1] == 0) return length(tmp);
33 return abs(scalarprod2(n, tmp) / length(n));