Index: src/game/g_client.c =================================================================== --- src/game/g_client.c (Revision 7877) +++ 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) { @@ -939,6 +946,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 +981,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 +1097,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 }