just make it look nice

origin
stpohle 18 years ago
parent 1607462295
commit 396fe092cd

@ -1,4 +1,4 @@
/* $Id: packets.h,v 1.37 2007/02/22 21:32:58 stpohle Exp $ /* $Id: packets.h,v 1.38 2008/04/04 10:39:05 stpohle Exp $
* network packets.. */ * network packets.. */
#ifndef _PACKETS_H_ #ifndef _PACKETS_H_
@ -13,27 +13,27 @@
* only packets between client and server, all packets behinf PKG_field * only packets between client and server, all packets behinf PKG_field
* are between all clients so they will be forwarded. */ * are between all clients so they will be forwarded. */
enum _network_data { enum _network_data {
PKG_error = 0, PKG_error = 0,
PKG_gameinfo, PKG_gameinfo,
PKG_joingame, // every packet below here will checked PKG_joingame, // every packet below here will checked
// if it comes from a orginal player // if it comes from a orginal player
PKG_contest, PKG_contest,
PKG_playerid, PKG_playerid,
PKG_servermode, PKG_servermode,
PKG_pingreq, PKG_pingreq,
PKG_pingack, PKG_pingack,
PKG_getfield, PKG_getfield,
PKG_getplayerdata, PKG_getplayerdata,
PKG_teamdata, PKG_teamdata,
PKG_fieldline, PKG_fieldline,
PKG_pkgack, PKG_pkgack,
PKG_mapinfo, PKG_mapinfo,
PKG_tunneldata, PKG_tunneldata,
PKG_updateinfo, PKG_updateinfo,
PKG_field, // forward - always be the first field PKG_field, // forward - always be the first field
PKG_playerdata, // forward PKG_playerdata, // forward
PKG_bombdata, // forward PKG_bombdata, // forward
PKG_playerstatus, // forward PKG_playerstatus, // forward
PKG_playermove, // forward PKG_playermove, // forward
PKG_chat, // forward PKG_chat, // forward
PKG_ill, // forward PKG_ill, // forward
@ -51,15 +51,15 @@ enum _pkgflags {
struct pkgheader { struct pkgheader {
unsigned char typ; unsigned char typ;
unsigned char flags; unsigned char flags;
Sint16 id; Sint16 id;
Sint16 len; Sint16 len;
} __attribute__((packed)); } __attribute__((packed));
struct pkg { struct pkg {
struct pkgheader h; struct pkgheader h;
char data[0]; char data[0];
} __attribute__((packed)); } __attribute__((packed));
struct pkg_bcmservchat { struct pkg_bcmservchat {

Loading…
Cancel
Save