updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / xfirepower / xfirepower.patch
blobe4d79b9618918a5d50851b3673c35f2305f2eb8f
1 --- client/input.c.old 1995-06-15 11:32:40.000000000 +0600
2 +++ client/input.c 2012-01-20 12:26:42.933277657 +0600
3 @@ -124,6 +124,9 @@
4 case 'r':
5 sendBuild(T_ROAD);
6 break;
7 + case 'z':
8 + sendCourse(getcourse(ev.Window, ev.x, ev.y));
9 + break;
10 case 'p':
11 sendPing();
12 break;
13 --- client/libsprite/data.c.old 1995-05-27 08:12:53.000000000 +0600
14 +++ client/libsprite/data.c 2012-01-20 12:33:31.106613298 +0600
15 @@ -80,7 +80,7 @@
16 W_Color W_Green2 = GREEN2, W_Blue = BLUE, W_DarkGreen = DARKGREEN, W_Brown = BROWN;
17 W_Color W_Yellow = YELLOW, W_Cyan = CYAN, W_Grey = LIGHT_GREY, W_DarkGrey = DARK_GREY;
18 int W_Textwidth, W_Textheight, W_BigTextwidth, W_BigTextheight;
19 -char *strdup();
20 +// char *strdup();
22 int W_in_message = 0; /* jfy -- for Jerry's warp message hack */
24 --- client/libsprite/libsdata.h.old 1995-05-27 08:12:40.000000000 +0600
25 +++ client/libsprite/libsdata.h 2012-01-20 12:32:05.456612814 +0600
26 @@ -21,6 +21,18 @@
27 #include "Wlib.h"
28 #include "libsdefs.h"
30 +struct fontInfo {
31 + XFontStruct *fontstruct;
32 + int baseline;
33 +};
35 +struct colors {
36 + char *name;
37 + GC contexts[FONTS + NONFONTS];
38 + Pixmap pixmap;
39 + unsigned long pixelValue;
40 +};
42 extern int nplanes;
43 extern int xpmORplanes ;
44 extern unsigned long base;
45 --- client/libsprite/libsdefs.h.old 1995-05-27 08:05:59.000000000 +0600
46 +++ client/libsprite/libsdefs.h 2012-01-20 12:41:15.913282592 +0600
47 @@ -56,11 +56,11 @@
49 #define NORMAL_FONT "6x10"
50 #define BOLD_FONT "6x10"
51 -#define BOLD_FONT2 "-*-clean-bold-r-normal--10-100-75-75-c-60-*"
52 +#define BOLD_FONT2 "-misc-dejavu sans-bold-r-normal--10-100-75-75-p-60-iso8859-1"
53 #define ITALIC_FONT "6x10"
54 -#define ITALIC_FONT2 "-*-clean-bold-r-normal--10-100-75-75-c-60-*"
55 -#define BIG_FONT "-adobe-helvetica-bold-r-normal--34-*-*-*-*-*-*-*"
56 -#define IND_FONT "-*-clean-bold-r-normal--10-100-75-75-c-60-*"
57 +#define ITALIC_FONT2 "-misc-dejavu sans-bold-r-normal--10-100-75-75-p-60-iso8859-1"
58 +#define BIG_FONT "-misc-dejavu sans-bold-r-normal--34-*-*-*-*-*-*-*"
59 +#define IND_FONT "-misc-dejavu sans-bold-r-normal--10-100-75-75-p-60-iso8859-1"
61 #define FONTS 4
62 #define BITGC 4
63 --- client/libsprite/libsstruct.h.old 1995-05-24 04:02:28.000000000 +0600
64 +++ client/libsprite/libsstruct.h 2012-01-20 12:31:00.879945782 +0600
65 @@ -20,18 +20,6 @@
67 #include "libsdefs.h"
69 -struct fontInfo {
70 - XFontStruct *fontstruct;
71 - int baseline;
72 -};
74 -struct colors {
75 - char *name;
76 - GC contexts[FONTS + NONFONTS];
77 - Pixmap pixmap;
78 - unsigned long pixelValue;
79 -};
81 struct window {
82 Window window;
83 W_Window borderwin;
84 --- server/motd.c.old 2012-01-20 14:20:37.000000000 +0600
85 +++ server/motd.c 2012-01-20 14:21:07.586649794 +0600
86 @@ -13,7 +13,7 @@
88 /* motd_read_motd()
90 - Read the motd from "./.motd"
91 + Read the motd from "/usr/share/xfirepower/motd"
92 Save it memory, send it to each player when they log on
94 Return: none
95 @@ -26,7 +26,7 @@
97 GLO_motdLines = 0;
99 - if ((mf = fopen("./.motd", "r")) == 0) {
100 + if ((mf = fopen("/usr/share/xfirepower/motd", "r")) == 0) {
101 printf("No motd file, I'm bummed :-(\n");
102 return;
104 @@ -42,7 +42,7 @@
105 GLO_motd = malloc(GLO_motdLines * sizeof(char *));
107 /* read into motd array */
108 - mf = fopen("./.motd", "r");
109 + mf = fopen("/usr/share/xfirepower/motd", "r");
110 for (i = 0; i < GLO_motdLines; i++) {
111 GLO_motd[i] = malloc(100);
112 fgets(GLO_motd[i], 100, mf);