annotate feature.c @ 3:5a977ccbc7a9 default tip

Empty changelog
author darius
date Sat, 06 Dec 1997 05:41:29 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
1 /* $Id: feature.c,v 1.1.1.1 1997/12/06 05:41:29 darius Exp $ */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
2
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
3 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
4 * Feature.c
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
5 *
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
6 * March, 1994. Joe Rumsey, Tedd Hadley
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
7 *
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
8 * most of the functions needed to handle SP_FEATURE/CP_FEATURE
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
9 * packets. fill in the features list below for your client, and
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
10 * add a call to reportFeatures just before the RSA response is sent.
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
11 * handleFeature should just call checkFeature, which will search the
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
12 * list and set the appropriate variable. features unknown to the
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
13 * server are set to the desired value for client features, and off
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
14 * for server/client features.
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
15 *
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
16 * feature packets look like:
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
17 struct feature_cpacket {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
18 char type;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
19 char feature_type;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
20 char arg1,
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
21 arg2;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
22 int value;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
23 char name[80];
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
24 };
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
25
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
26 * type is CP_FEATURE, which is 60. feature_spacket is identical.
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
27 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
28
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
29
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
30 #ifdef FEATURE
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
31 #include "copyright.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
32
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
33 #include <stdio.h>
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
34 #include <sys/types.h>
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
35 #include <netinet/in.h>
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
36 #include "Wlib.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
37 #include "defs.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
38 #include "struct.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
39 #include "data.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
40 #include "proto.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
41 #include "packets.h"
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
42
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
43
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
44 void sendFeature P((char *name, int feature_type,
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
45 int value, int arg1, int arg2));
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
46 void reportFeatures P((void));
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
47
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
48 /* not the actual packets: this holds a list of features to report for */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
49 /* this client. */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
50 struct feature {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
51 char *name;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
52 int *var; /* holds allowed/enabled status */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
53 char feature_type; /* 'S' or 'C' for server/client */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
54 int value; /* desired status */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
55 char *arg1, *arg2; /* where to copy args, if non-null */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
56 } features[] = {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
57 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
58 also sent seperately, put here for checking later. should be ok that
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
59 it's sent twice.
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
60 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
61 {"FEATURE_PACKETS", &F_feature_packets, 'S', 1, 0, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
62
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
63 {"VIEW_BOX", &allowViewBox, 'C', 1, 0, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
64 {"SHOW_ALL_TRACTORS", &allowShowAllTractorPressor, 'S', 1, 0, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
65 #ifdef CONTINUOUS_MOUSE
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
66 {"CONTINUOUS_MOUSE", &allowContinuousMouse, 'C', 1, 0, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
67 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
68 {"NEWMACRO", &F_UseNewMacro, 'C', 1, 0, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
69 /* {"SMARTMACRO",&UseSmartMacro, 'C', 1, 0, 0}, */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
70 {"MULTIMACROS", &F_multiline_enabled, 'S', 1, 0, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
71 {"WHY_DEAD", &why_dead, 'S', 1, 0, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
72 {"CLOAK_MAXWARP", &cloakerMaxWarp, 'S', 1, 0, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
73 /*{"DEAD_WARP", &F_dead_warp, 'S', 1, 0, 0},*/
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
74 #ifdef RC_DISTRESS
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
75 {"RC_DISTRESS", &F_gen_distress, 'S', 1, 0, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
76 #ifdef BEEPLITE
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
77 {"BEEPLITE", &F_allow_beeplite, 'C', 1, (char*)&F_beeplite_flags, 0},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
78 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
79 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
80 /* terrain features */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
81 {"TERRAIN", &F_terrain, 'S', 1, (char*)&F_terrain_major, (char*)&F_terrain_minor},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
82 /* Gzipped MOTD */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
83 {"GZ_MOTD", &F_gz_motd, 'S', 1, (char*)&F_gz_motd_major, (char*)&F_gz_motd_minor},
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
84 {0, 0, 0, 0, 0, 0}
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
85 };
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
86
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
87 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
88 checkFeature(packet)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
89 struct feature_spacket *packet;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
90 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
91 int i;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
92 int value = ntohl(packet->value);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
93
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
94 #ifdef FEAT_DEBUG
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
95 if (packet->type != SP_FEATURE) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
96 printf("Packet type %d sent to checkFeature!\n", packet->type);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
97 return;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
98 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
99 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
100 printf("%s: %s(%d)\n", &packet->name[0],
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
101 ((value == 1) ? "ON" : (value == 0) ? "OFF" : "UNKNOWN"),
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
102 value);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
103
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
104 for (i = 0; features[i].name != 0; i++) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
105 if (strcmpi(packet->name, features[i].name) == 0) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
106 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
107 if server returns unknown, set to off for server mods, desired
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
108 value for client mods. Otherwise, set to value from server.
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
109 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
110 *features[i].var = (value == -1 ?
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
111 (features[i].feature_type == 'S' ? 0 : features[i].value) :
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
112 value);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
113 if (features[i].arg1)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
114 *features[i].arg1 = packet->arg1;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
115 if (features[i].arg2)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
116 *features[i].arg2 = packet->arg2;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
117 break;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
118 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
119 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
120 if (features[i].name == 0) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
121 printf("Feature %s from server unknown to client!\n", packet->name);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
122 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
123 /* special cases: */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
124 if ((strcmpi(packet->name, "FEATURE_PACKETS")==0))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
125 reportFeatures();
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
126 else if ((strcmpi(packet->name, "RC_DISTRESS") == 0) && F_gen_distress)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
127 distmacro = dist_prefered;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
128 else if ((strcmpi(packet->name, "BEEPLITE") == 0)) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
129 switch (value) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
130 case -1: /* Unknown, we can use all of the features! */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
131 F_beeplite_flags = LITE_PLAYERS_MAP |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
132 LITE_PLAYERS_LOCAL |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
133 LITE_SELF |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
134 LITE_PLANETS |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
135 LITE_SOUNDS |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
136 LITE_COLOR;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
137 break;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
138 case 1:
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
139 if (F_beeplite_flags == 0) { /* Server says we can have
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
140 beeplite, but no
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
141 options??? must be
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
142 configured wrong. */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
143 F_beeplite_flags = LITE_PLAYERS_MAP |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
144 LITE_PLAYERS_LOCAL |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
145 LITE_SELF |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
146 LITE_PLANETS |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
147 LITE_SOUNDS |
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
148 LITE_COLOR;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
149 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
150 if (!(F_beeplite_flags & LITE_PLAYERS_MAP))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
151 printf(" LITE_PLAYERS_MAP disabled\n");
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
152 if (!(F_beeplite_flags & LITE_PLAYERS_LOCAL))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
153 printf(" LITE_PLAYERS_LOCAL disabled\n");
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
154 if (!(F_beeplite_flags & LITE_SELF))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
155 printf(" LITE_SELF disabled\n");
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
156 if (!(F_beeplite_flags & LITE_PLANETS))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
157 printf(" LITE_PLANETS disabled\n");
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
158 if (!(F_beeplite_flags & LITE_SOUNDS))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
159 printf(" LITE_SOUNDS disabled\n");
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
160 if (!(F_beeplite_flags & LITE_COLOR))
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
161 printf(" LITE_COLOR disabled\n");
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
162 break;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
163 default:
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
164 break;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
165 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
166 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
167 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
168
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
169 /* call this from handleReserved */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
170 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
171 reportFeatures()
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
172 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
173 struct feature *f;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
174
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
175 /*
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
176 Don't send features[0], which is the feature for FEATURE_PACKETS itself.
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
177 That's sent from main()
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
178 */
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
179 for (f = &features[1]; f->name != 0; f++) {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
180 sendFeature(f->name,
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
181 f->feature_type,
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
182 f->value,
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
183 (f->arg1 ? *f->arg1 : 0),
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
184 (f->arg2 ? *f->arg2 : 0));
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
185 #ifdef FEAT_DEBUG
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
186 printf("(C->S) %s (%c): %d\n", f->name, f->feature_type, f->value);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
187 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
188 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
189 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
190
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
191 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
192 sendFeature(name, feature_type, value, arg1, arg2)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
193 char *name;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
194 int feature_type;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
195 int value;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
196 int arg1, arg2;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
197 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
198 struct feature_cpacket packet;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
199
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
200 #ifdef FEAT_DEBUG
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
201 printf( "Sending feature %s (value = %d)\n", name, value );
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
202 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
203 strncpy(packet.name, name, sizeof(packet.name));
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
204 packet.type = CP_FEATURE;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
205 packet.name[sizeof(packet.name) - 1] = 0;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
206 packet.feature_type = feature_type;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
207 packet.value = htonl(value);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
208 packet.arg1 = arg1;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
209 packet.arg2 = arg2;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
210 sendServerPacket((struct player_spacket *) & packet);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
211 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
212
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
213 void
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
214 handleFeature(packet)
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
215 struct feature_spacket *packet;
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
216 {
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
217 #ifdef FEAT_DEBUG
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
218 printf( "Handling Feature packet\n" );
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
219 #endif
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
220 checkFeature(packet);
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
221 }
5a977ccbc7a9 Empty changelog
darius
parents:
diff changeset
222 #endif /* FEATURE */