Use ncqport_e on the right field.

Well, now, that was incredibly silly, wasn't it? :P
This commit is contained in:
Bill Currie 2011-07-23 21:39:13 +09:00
parent 9ccd570105
commit 688e5c7e24
5 changed files with 10 additions and 10 deletions

View file

@ -251,8 +251,8 @@ typedef struct netchan_s {
///@} ///@}
netadr_t remote_address; netadr_t remote_address;
ncqport_e qport; int qport;
int flags; ncqport_e flags;
/// \name bandwidth estimator /// \name bandwidth estimator
///@{ ///@{
@ -311,7 +311,7 @@ void Netchan_OutOfBand (netadr_t adr, int length, byte *data);
void Netchan_OutOfBandPrint (netadr_t adr, const char *format, ...) void Netchan_OutOfBandPrint (netadr_t adr, const char *format, ...)
__attribute__ ((format (printf,2,3))); __attribute__ ((format (printf,2,3)));
qboolean Netchan_Process (netchan_t *chan); qboolean Netchan_Process (netchan_t *chan);
void Netchan_Setup (netchan_t *chan, netadr_t adr, ncqport_e qport, int flags); void Netchan_Setup (netchan_t *chan, netadr_t adr, int qport, ncqport_e flags);
qboolean Netchan_CanPacket (netchan_t *chan); qboolean Netchan_CanPacket (netchan_t *chan);
qboolean Netchan_CanReliable (netchan_t *chan); qboolean Netchan_CanReliable (netchan_t *chan);

View file

@ -141,7 +141,7 @@ Netchan_OutOfBandPrint (netadr_t adr, const char *format, ...)
called to open a channel to a remote system called to open a channel to a remote system
*/ */
void void
Netchan_Setup (netchan_t *chan, netadr_t adr, ncqport_e qport, int flags) Netchan_Setup (netchan_t *chan, netadr_t adr, int qport, ncqport_e flags)
{ {
memset (chan, 0, sizeof (*chan)); memset (chan, 0, sizeof (*chan));

View file

@ -33,8 +33,8 @@
#define __sv_qtv_h #define __sv_qtv_h
struct info_s; struct info_s;
void SV_qtvConnect (ncqport_e qport, struct info_s *info); void SV_qtvConnect (int qport, struct info_s *info);
int SV_qtvPacket (ncqport_e qport); int SV_qtvPacket (int qport);
void SV_qtvCheckTimeouts (void); void SV_qtvCheckTimeouts (void);
void SV_qtvSendMessages (void); void SV_qtvSendMessages (void);
void SV_qtvFinalMessage (const char *message); void SV_qtvFinalMessage (const char *message);

View file

@ -768,7 +768,7 @@ SVC_DirectConnect (void)
const char *s; const char *s;
client_t *cl, *newcl; client_t *cl, *newcl;
int challenge, version, i, qtv = 0; int challenge, version, i, qtv = 0;
ncqport_e qport; int qport;
netadr_t adr; netadr_t adr;
qboolean spectator; qboolean spectator;
client_frame_t *frames; client_frame_t *frames;
@ -1756,7 +1756,7 @@ SV_ReadPackets (void)
//NOTE star volatile, not volatile star //NOTE star volatile, not volatile star
client_t *volatile cl; // * volatile for longjmp client_t *volatile cl; // * volatile for longjmp
int i; int i;
ncqport_e qport; int qport;
double until; double until;
while (NET_GetPacket ()) { while (NET_GetPacket ()) {

View file

@ -398,7 +398,7 @@ qtv_reliable_send (sv_qtv_t *proxy)
} }
void void
SV_qtvConnect (ncqport_e qport, info_t *info) SV_qtvConnect (int qport, info_t *info)
{ {
sv_qtv_t *proxy; sv_qtv_t *proxy;
@ -424,7 +424,7 @@ SV_qtvConnect (ncqport_e qport, info_t *info)
} }
int int
SV_qtvPacket (ncqport_e qport) SV_qtvPacket (int qport)
{ {
int i; int i;