version 1.3 | | version 1.4 |
---|
| | |
* Modem support code | | * Modem support code |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.4 2003/03/09 06:34:10 donut |
| | * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned |
| | * |
* Revision 1.3 2000/04/21 22:16:09 sekmu | | * Revision 1.3 2000/04/21 22:16:09 sekmu |
* temp removed irq restrictions | | * temp removed irq restrictions |
* | | * |
| | |
| | |
typedef struct com_sync_pack { | | typedef struct com_sync_pack { |
char type; | | char type; |
byte proto_version; | | sbyte proto_version; |
long sync_time; | | long sync_time; |
byte level_num; | | sbyte level_num; |
char difficulty; | | char difficulty; |
char game_mode; | | char game_mode; |
char callsign[CALLSIGN_LEN+1]; | | char callsign[CALLSIGN_LEN+1]; |
short kills[2]; | | short kills[2]; |
ushort seg_checksum; | | ushort seg_checksum; |
#ifndef SHAREWARE | | #ifndef SHAREWARE |
byte sync_id; | | sbyte sync_id; |
char mission_name[9]; | | char mission_name[9]; |
short killed; | | short killed; |
byte game_flags; | | sbyte game_flags; |
#endif | | #endif |
char dummy[3]; // Extra space for checksum & sequence number | | char dummy[3]; // Extra space for checksum & sequence number |
} __pack__ com_sync_pack; | | } __pack__ com_sync_pack; |
| | |
/* until I know it works.. probably after 1.30 | | /* until I know it works.. probably after 1.30 |
typedef struct d1x_com_sync_pack { | | typedef struct d1x_com_sync_pack { |
char type; | | char type; |
byte proto_version; | | sbyte proto_version; |
long sync_time; | | long sync_time; |
byte level_num; | | sbyte level_num; |
char difficulty; | | char difficulty; |
char game_mode; | | char game_mode; |
char callsign[CALLSIGN_LEN+1]; | | char callsign[CALLSIGN_LEN+1]; |
short kills[2]; | | short kills[2]; |
ushort seg_checksum; | | ushort seg_checksum; |
#ifndef SHAREWARE | | #ifndef SHAREWARE |
byte sync_id; | | sbyte sync_id; |
char mission_name[9]; | | char mission_name[9]; |
short killed; | | short killed; |
byte game_flags; | | sbyte game_flags; |
#endif | | #endif |
| | |
| | |
| | |
} | | } |
| | |
void | | void |
com_process_end_sync(byte *buf) | | com_process_end_sync(sbyte *buf) |
{ | | { |
// Process incoming end-sync packet | | // Process incoming end-sync packet |
| | |