You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-action/gltron/files/gltron-0.70-debian.patch

36 lines
873 B

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));
}