1 |
mr_bones_ 15/04/01 05:09:52 |
2 |
|
3 |
Added: spacerider-0.13-font.patch |
4 |
spacerider-0.13-gcc49.patch |
5 |
Log: |
6 |
first attempt at patch to fix bug #539658 |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 games-arcade/spacerider/files/spacerider-0.13-font.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/spacerider/files/spacerider-0.13-font.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/spacerider/files/spacerider-0.13-font.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: spacerider-0.13-font.patch |
17 |
=================================================================== |
18 |
Ugly brute-force method for avoiding a double-free segfault on exit. |
19 |
Better patch welcome. |
20 |
|
21 |
--- spacerider.cpp.orig 2015-03-31 23:24:17.770966147 -0400 |
22 |
+++ spacerider.cpp 2015-03-31 23:24:41.592174463 -0400 |
23 |
@@ -306,8 +306,6 @@ |
24 |
/* free screen */ |
25 |
SDL_FreeSurface(screen); |
26 |
} |
27 |
- /* call the TTF-Library cleanup function */ |
28 |
- TTF_Quit(); |
29 |
|
30 |
/* call the NET-Library cleanup function */ |
31 |
SDLNet_Quit(); |
32 |
|
33 |
|
34 |
|
35 |
1.1 games-arcade/spacerider/files/spacerider-0.13-gcc49.patch |
36 |
|
37 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch?rev=1.1&view=markup |
38 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch?rev=1.1&content-type=text/plain |
39 |
|
40 |
Index: spacerider-0.13-gcc49.patch |
41 |
=================================================================== |
42 |
--- effect.cpp.orig 2015-03-31 22:36:53.336131373 -0400 |
43 |
+++ effect.cpp 2015-03-31 22:37:04.359755281 -0400 |
44 |
@@ -18,7 +18,7 @@ |
45 |
void Effect::add(const int x, const int y) |
46 |
{ |
47 |
object_struct *effect; |
48 |
- if((effect = add_object(x, y)) == NULL) |
49 |
+ if((effect = add_object(x, y, 0, 0)) == NULL) |
50 |
{ |
51 |
return; |
52 |
} |
53 |
--- object.h.orig 2015-03-31 22:35:22.939214561 -0400 |
54 |
+++ object.h 2015-03-31 22:37:19.654233441 -0400 |
55 |
@@ -172,7 +172,7 @@ |
56 |
return object->next; |
57 |
} |
58 |
|
59 |
-template <class T>struct Object<T>::object_struct *Object<T>::add_object(const int x, const int y, const int speedx = 0, const int speedy = 0) |
60 |
+template <class T>struct Object<T>::object_struct *Object<T>::add_object(const int x, const int y, const int speedx, const int speedy) |
61 |
{ |
62 |
object_struct *object; |