From 97d379a0fb04f035def752177f15dfc99ff73441 Mon Sep 17 00:00:00 2001 From: stpohle Date: Wed, 10 Sep 2003 22:21:18 +0000 Subject: [PATCH] Little and Big Endian Support the second try. i didn\'t converted send_field, power ups incresed --- src/basic.h | 14 +++++++------- src/packets.c | 4 ++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/basic.h b/src/basic.h index 9038b67..8787e9e 100644 --- a/src/basic.h +++ b/src/basic.h @@ -1,18 +1,18 @@ -/* $Id: basic.h,v 1.52 2003/09/10 21:32:22 stpohle Exp $ */ +/* $Id: basic.h,v 1.53 2003/09/10 22:21:18 stpohle Exp $ */ /* basic types which we need everywhere */ #ifndef _BC_BASIC_H_ #define _BC_BASIC_H_ -#define GAME_SPECIAL_ITEMBOMB 10 -#define GAME_SPECIAL_ITEMFIRE 10 -#define GAME_SPECIAL_ITEMSHOE 10 -#define GAME_SPECIAL_ITEMDEATH 25 -#define GAME_SPECIAL_ITEMMIXED 10 +#define GAME_SPECIAL_ITEMBOMB 20 +#define GAME_SPECIAL_ITEMFIRE 20 +#define GAME_SPECIAL_ITEMSHOE 20 +#define GAME_SPECIAL_ITEMDEATH 40 +#define GAME_SPECIAL_ITEMMIXED 20 #define GAME_SPECIAL_ITEMSTRIGGER 3 #define GAME_SPECIAL_ITEMSROW 3 -#define GAME_SPECIAL_ITEMSPUSH 3 +#define GAME_SPECIAL_ITEMSPUSH 2 #define GAME_MAX_TUNNELS 4 // number of tunnel entrys #define GAME_TIMEOUT 30000 // game timeout 10min) #define GAME_TIMEOUTHURRY 3000 // game timeout for hurry and dropping mode (1min) diff --git a/src/packets.c b/src/packets.c index e87efe4..db92824 100644 --- a/src/packets.c +++ b/src/packets.c @@ -332,6 +332,10 @@ send_field (_net_addr * addr, int x, int y, _field * field) return; memcpy (&f_dat.field, &map.field[x][y], sizeof (_field)); + f_dat.field.frame = HTON16 (f_dat.field.frame); + f_dat.field.frameto = HTON32 (f_dat.field.frameto); + f_dat.field.ex_nr = HTON32 (f_dat.field.ex_nr); + send_pkg ((struct pkg *) &f_dat, addr); };