Index: src/game/g_client.c =================================================================== --- src/game/g_client.c (Revision 7893) +++ src/game/g_client.c (Arbeitskopie) @@ -758,7 +758,14 @@ /* check if action is possible */ if (checkaction && !G_ActionCheck(player, ent, 1, quiet)) return; - +#ifdef DEBUG + Com_Printf("G_ClientInvMove ================ 111\n"); + Com_Printf("G_ClientInvMove ent inventory:\n"); + INV_PrintToConsole(&ent->i); /* DEBUG */ + Com_Printf("G_ClientInvMove floor inventory:\n"); + G_PrintFloorToConsole(ent->pos); /* DEBUG */ + Com_Printf("G_ClientInvMove ================ 111\n"); +#endif /* "get floor ready" - searching for existing floor-edict*/ floor = G_GetFloorItems(ent); /* Also sets FLOOR(ent) to correct value. */ if (to == gi.csi->idFloor && !floor) { @@ -895,6 +902,7 @@ /* Add the item; update floor, because we add at beginning */ FLOOR(floor) = FLOOR(ent); /* TODO: _why_ do we do this here exactly? Shouldn't they be the same already at this point? */ /* Tell the client to add the item to the container. */ + Com_Printf("G_ClientInvMove: (to==existing floor) LE is %i|%#X\n", floor->number, floor->number); /* DEBUG */ gi.AddEvent(G_VisToPM(floor->visflags), EV_INV_ADD); gi.WriteShort(floor->number); gi.WriteShort(6); @@ -902,6 +910,7 @@ } } else { /* Tell the client to add the item to the container. */ + Com_Printf("G_ClientInvMove: (to==no floor) LE is %i|%#X\n", num, num); /* DEBUG */ gi.AddEvent(G_TeamToPM(ent->team), EV_INV_ADD); gi.WriteShort(num); gi.WriteShort(6); @@ -932,6 +941,7 @@ gi.WriteByte(fy); } if (to == gi.csi->idRight || to == gi.csi->idLeft) { + Com_Printf("G_ClientInvMove: (to==RorL hand) LE is %i|%#X\n", num, num); /* DEBUG */ gi.AddEvent(mask, EV_INV_ADD); gi.WriteShort(num); gi.WriteShort(6); @@ -939,6 +949,14 @@ } } gi.EndEvents(); +#ifdef DEBUG + Com_Printf("G_ClientInvMove ================ 222\n"); + Com_Printf("G_ClientInvMove ent inventory:\n"); + INV_PrintToConsole(&ent->i); /* DEBUG */ + Com_Printf("G_ClientInvMove floor inventory:\n"); + G_PrintFloorToConsole(ent->pos); /* DEBUG */ + Com_Printf("G_ClientInvMove ================ 222\n"); +#endif } @@ -966,7 +984,14 @@ /* edict is not carrying any items */ if (k >= gi.csi->numIDs) return; - +#ifdef DEBUG + Com_Printf("G_InventoryToFloor ================ 111\n"); + Com_Printf("G_InventoryToFloor ent inventory:\n"); + INV_PrintToConsole(&ent->i); /* DEBUG */ + Com_Printf("G_InventoryToFloor floor inventory:\n"); + G_PrintFloorToConsole(ent->pos); /* DEBUG */ + Com_Printf("G_InventoryToFloor ================ 111\n"); +#endif /* find the floor */ floor = G_GetFloorItems(ent); if (!floor) { @@ -1075,6 +1100,14 @@ if (floorAdjacent) G_CheckVis(floorAdjacent, qtrue); #endif +#ifdef DEBUG + Com_Printf("G_InventoryToFloor ================ 111\n"); + Com_Printf("G_InventoryToFloor ent inventory:\n"); + INV_PrintToConsole(&ent->i); /* DEBUG */ + Com_Printf("G_InventoryToFloor floor inventory:\n"); + G_PrintFloorToConsole(ent->pos); /* DEBUG */ + Com_Printf("G_InventoryToFloor ================ 111\n"); +#endif } Index: src/client/cl_parse.c =================================================================== --- src/client/cl_parse.c (Revision 7893) +++ src/client/cl_parse.c (Arbeitskopie) @@ -1002,7 +1002,7 @@ item_t item; number = MSG_ReadShort( sb ); - + Com_Printf("InvAdd: LE is %i|%#X\n", number, number); /* DEBUG */ le = LE_Get(number); if (!le) { nr = MSG_ReadShort(sb) / 6;