<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am compiling a project I recently finished and
during the build Dev-C++ is complaining about protocol.c converting from
enet_uint8 to ENetProtocolCommand on line 114. For reference the function
it is in is reproduced below.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>the cuplrit is said to be this
line:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>commandNumber = outgoingCommand ->
command.header.command;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>in this function:</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=Arial size=2></FONT></STRONG> </DIV>
<DIV><FONT face=Arial size=2>static
ENetProtocolCommand<BR>enet_protocol_remove_sent_reliable_command (ENetPeer *
peer, enet_uint32 reliableSequenceNumber, enet_uint8
channelID)<BR>{<BR> ENetOutgoingCommand *
outgoingCommand;<BR> ENetListIterator
currentCommand;<BR> ENetProtocolCommand
commandNumber;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> for (currentCommand =
enet_list_begin (& peer ->
sentReliableCommands);<BR>
currentCommand != enet_list_end (& peer ->
sentReliableCommands);<BR>
currentCommand = enet_list_next (currentCommand))<BR>
{<BR> outgoingCommand = (ENetOutgoingCommand
*) currentCommand;<BR>
<BR> if (outgoingCommand ->
reliableSequenceNumber == reliableSequenceNumber
&&<BR>
outgoingCommand -> command.header.channelID ==
channelID)<BR>
break;<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (currentCommand ==
enet_list_end (& peer ->
sentReliableCommands))<BR> return
ENET_PROTOCOL_COMMAND_NONE;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> commandNumber = outgoingCommand
-> command.header.command;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> enet_list_remove (&
outgoingCommand -> outgoingCommandList);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (outgoingCommand -> packet
!= NULL)<BR> {<BR> peer
-> reliableDataInTransit -= outgoingCommand ->
fragmentLength;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> --
outgoingCommand -> packet -> referenceCount;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if
(outgoingCommand -> packet -> referenceCount ==
0)<BR> enet_packet_destroy
(outgoingCommand -> packet);<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> enet_free
(outgoingCommand);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (enet_list_empty (& peer
-> sentReliableCommands))<BR> return
commandNumber;<BR> <BR> outgoingCommand =
(ENetOutgoingCommand *) enet_list_front (& peer ->
sentReliableCommands);<BR> <BR> peer ->
nextTimeout = outgoingCommand -> sentTime + outgoingCommand ->
roundTripTimeout;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> return commandNumber;<BR>}
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you in advance for any help you can
provide. If further information is needed, just let me know</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Nick</FONT></DIV></BODY></HTML>