X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmain.h;h=98d59381c2a914c37888675301cdc14cbb24e36d;hb=1cacebfb41c20889c904155001a5b88ace962348;hp=0d3bfe5eff56bc928026f181ca52744993ed3401;hpb=e557b2b5d9951a4e692fd4e32a5cf45c84252c64;p=rocksndiamonds.git diff --git a/src/main.h b/src/main.h index 0d3bfe5e..98d59381 100644 --- a/src/main.h +++ b/src/main.h @@ -40,6 +40,7 @@ #endif /* #ifndef MSDOS */ typedef int BOOL; +typedef unsigned char byte; #ifndef FALSE #define FALSE 0 @@ -143,12 +144,7 @@ typedef int BOOL; #define IS_PUSHABLE(e) (Elementeigenschaften[e] & EP_BIT_PUSHABLE) #define ELEM_IS_PLAYER(e) (Elementeigenschaften[e] & EP_BIT_PLAYER) -/* -#define IS_PLAYER(x,y) (JX == (x) && JY == (y)) -*/ - #define IS_PLAYER(x,y) (ELEM_IS_PLAYER(StorePlayer[x][y])) -#define IS_LOCAL_PLAYER(x,y) (StorePlayer[x][y] == EL_SPIELER1) #define IS_FREE(x,y) (Feld[x][y] == EL_LEERRAUM && !IS_PLAYER(x,y)) #define IS_FREE_OR_PLAYER(x,y) (Feld[x][y] == EL_LEERRAUM) @@ -213,7 +209,8 @@ struct HiScore struct PlayerInfo { - int nr, active, local; + int active, local; + int index_nr, client_nr, element_nr; char login_name[MAX_NAMELEN]; char alias_name[MAX_NAMELEN]; @@ -276,7 +273,7 @@ struct LevelDirInfo struct RecordingInfo { int level_nr; - unsigned int random_seed; + unsigned long random_seed; unsigned long date; unsigned long counter; unsigned long length; @@ -288,8 +285,8 @@ struct RecordingInfo BOOL changed; struct { - unsigned char joystickdata[MAX_PLAYERS]; - unsigned char delay; + byte action[MAX_PLAYERS]; + byte delay; } pos[MAX_TAPELEN]; }; @@ -326,7 +323,7 @@ extern char *program_name; extern char *display_name; extern char *server_host; extern int server_port; -extern int networking; +extern int serveronly; extern int standalone; extern int verbose; @@ -380,6 +377,8 @@ extern int AllPlayersGone; extern int FrameCounter, TimeFrames, TimeLeft; extern int MampferNr, SiebAktiv; +extern byte network_player_action[]; +extern BOOL network_player_action_received; extern int TestPlayer; extern struct LevelDirInfo leveldir[];