e_event_invadd.c File Reference

#include "../../../../client.h"
#include "../../../cl_localentity.h"
#include "../../../../cl_inventory.h"
#include "e_event_invadd.h"
Include dependency graph for e_event_invadd.c:

Go to the source code of this file.

Functions

static void CL_NetReceiveItem (struct dbuffer *buf, item_t *item, containerIndex_t *container, int *x, int *y)
void CL_InvAdd (const eventRegister_t *self, struct dbuffer *msg)

Detailed Description

Definition in file e_event_invadd.c.


Function Documentation

void CL_InvAdd ( const eventRegister_t self,
struct dbuffer msg 
)
static void CL_NetReceiveItem ( struct dbuffer buf,
item_t item,
containerIndex_t container,
int *  x,
int *  y 
) [static]
See also:
G_WriteItem
G_ReadItem
Note:
The amount of the item_t struct should not be needed here - because the amount is only valid for idFloor and idEquip

Definition at line 36 of file e_event_invadd.c.

References item_s::a, item_s::amount, CL_GetEvent(), Com_Error(), ERR_DROP, EV_INV_TRANSFER, eventRegister_s::formatString, INVSH_GetItemByIDX(), item_s::m, m, NET_ReadFormat(), NONE_AMMO, item_s::rotated, and item_s::t.

Referenced by CL_InvAdd().


Generated by  doxygen 1.6.2