diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-05-04 19:22:36 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-05-04 19:22:36 +0000 |
| commit | 8b70ac9538f7e4da10666cfc21fd368a91a77ae3 (patch) | |
| tree | 0157c0b2378e3032fa2357a6e543e3bbab03445c /include/item.h | |
| parent | 9058b5c0bfc9a05c9004cfbbcdd3bb85d80ed6fc (diff) | |
- oprava chyby -> client sa zrutil ak dostal packety "init" a "additem" v opacnom poradi
- oprava chyby -> item a shot ukazoval pointerom na tuxa, to znamenalo, ze ak sa tux odhlasil, tak item a shot
ukazoval do uvolnenej pamate
- oprava chyby -> exploziu si client pridaval sam, a este prijmal packet od servera, ze sa ma pridat explozia
git-svn-id: http://opensvn.csie.org/tuxanci_ng@50 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/item.h')
| -rw-r--r-- | include/item.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/item.h b/include/item.h index ad390a1..3413452 100644 --- a/include/item.h +++ b/include/item.h @@ -30,7 +30,7 @@ typedef struct item_struct int count; my_time_t lastSync; - tux_t *author; + int author_id; #ifndef PUBLIC_SERVER SDL_Surface *img; //obrazok #endif @@ -60,9 +60,9 @@ typedef struct item_struct extern bool_t isItemInicialized(); extern void initItem(); -extern item_t* newItem(int x, int y, int type, tux_t *author); +extern item_t* newItem(int x, int y, int type, int author_id); extern item_t* getItemID(list_t *listItem, int id); -extern void addNewItem(list_t *listItem, tux_t *author); +extern void addNewItem(list_t *listItem, int author_id); #ifndef PUBLIC_SERVER extern void drawItem(item_t *p); extern void drawListItem(list_t *listItem); |