View Issue Details

IDProjectCategoryView StatusLast Update
0003313The Dark ModDesign/Codingpublic18.02.2013 21:41
ReporterZbyl Assigned Tograyman  
PrioritynormalSeveritynormalReproducibilityalways
Status resolvedResolutionfixed 
Product VersionSVN 
Target VersionTDM 2.00Fixed in VersionTDM 2.00 
Summary0003313: Picked pockets are counted twice
DescriptionThere is a bug that causes pickpocketting to be counted twice. The reason for this is that InventoryCallback() is called twice in CInventory::PutItem(idEntity * ent, idEntity * owner) function. Here's the snippet:
---
PutItem(item, category); // <-- InventoryCallback() is already called here!

// We added a new inventory item
gameLocal.m_MissionData->InventoryCallback(...); // <-- second call - double COMP_PICKPOCKET counting!
---

Another thing to observe is that second pocket picked on the same guy does not count.
Steps To ReproduceLoad miscount.map (attached).
Pick key of the first guy. It counts twice.
Pick key of the second guy. It counts twice.
Pick second key of the second guy. It doesn't count at all.

Kill the girl to end mission and see mission statistics: 4 pockets picked.
TagsNo tags attached.
Attached Files
miscount.map (20,541 bytes)   
Version 2
// entity 0
{
"classname" "worldspawn"
"editor_drLastCameraPos" "-3.10863 82.7741 32.8627"
"editor_drLastCameraAngle" "6.60007 202.8 0"
"editor_drMapPos1" "1738.55 1171.14 -520.531"
"editor_drMapAngle1" "14.7001 87.8977 0"
"editor_drMapPos2" "414.798 255.441 -264.933"
"editor_drMapAngle2" "2.10002 84.5976 0"
"editor_drMapPos3" "-749.97 -1606.21 -470.066"
"editor_drMapAngle3" "-3.29998 6.59757 0"
"editor_drMapPos4" "1014.05 -953.679 -556.857"
"editor_drMapAngle4" "-10.2 355.498 0"
"editor_drMapPos5" "987.599 3513.79 -319.877"
"editor_drMapAngle5" "-61.1999 172.198 0"
"editor_drMapPos6" "-1032.5 -2840 739.5"
"editor_drMapAngle6" "-77.0999 175.798 0"
"editor_drMapPos7" "952.822 285.005 1366.04"
"editor_drMapAngle7" "-74.8 149.373 0"
"editor_drMapPos8" "976 424 320"
"editor_drMapAngle8" "-3 15.3467 0"
"editor_drMapPos9" "409.146 547.464 392.83"
"editor_drMapAngle9" "-16.8 284.947 0"
// primitive 0
{
brushDef3
{
( 0 0 1 -528 ) ( ( 0.03125 0 127.75 ) ( 0 0.03125 127.75 ) ) "textures/common/caulk" 0 0 0
( 0 1 0 -392 ) ( ( 0.03125 0 0.25 ) ( 0 0.03125 60.5 ) ) "textures/common/caulk" 0 0 0
( 1 0 0 -392 ) ( ( 0.03125 0 127.75 ) ( 0 0.03125 60.5 ) ) "textures/common/caulk" 0 0 0
( 0 -1 0 8 ) ( ( 0.03125 0 127.75 ) ( 0 0.03125 60.5 ) ) "textures/common/caulk" 0 0 0
( -1 0 0 8 ) ( ( 0.03125 0 0.25 ) ( 0 0.03125 60.5 ) ) "textures/common/caulk" 0 0 0
( 0 0 -1 520 ) ( ( 0.03125 0 127.75 ) ( 0 0.03125 0.25 ) ) "textures/smf/portal_sky" 0 0 0
}
}
// primitive 1
{
brushDef3
{
( 0 0 1 -520 ) ( ( 0.0078125 0 255.875 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -400 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -392 ) ( ( 0.0078125 0 255.875 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.0078125 0 255.875 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 8 ) ( ( 0.0078125 0 0.125 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 392 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 2
{
brushDef3
{
( 0 0 1 -520 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 255.875 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -392 ) ( ( 0.0078125 0 0.125 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -400 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0.125 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 8 ) ( ( 0.0078125 0 255.875 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 392 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 3
{
brushDef3
{
( 0 1 0 -392 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 239 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -392 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 239 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 8 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 239 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 8 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 239 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 1 -8 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 4
{
brushDef3
{
( 0 0 1 -520 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -392 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -8 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 5
{
patchDef2
{
"textures/darkmod/weather/snow_light"
( 3 3 0 0 0 )
(
( ( 8 208 264 0 0 ) ( 8 300 264 0 -0.75 ) ( 8 392 264 0 -1.5 ) )
( ( 108 208 264 0.78125 0 ) ( 108 300 264 0.78125 -0.75 ) ( 108 392 264 0.78125 -1.5 ) )
( ( 208 208 264 1.5625 0 ) ( 208 300 264 1.5625 -0.75 ) ( 208 392 264 1.5625 -1.5 ) )
)
}
}
// primitive 6
{
patchDef2
{
"textures/darkmod/metal/flat/copper_old_oxidised"
( 3 3 0 0 0 )
(
( ( 8 392 264.125 0 0 ) ( 8 300 264.125 0 -0.359375 ) ( 8 208 264.125 0 -0.71875 ) )
( ( 107.9607849121094 392 264.125 0.3904718160629273 0 ) ( 107.9607849121094 300 264.125 0.3904718160629273 -0.359375 ) ( 107.9607849121094 208 264.125 0.3904718160629273 -0.71875 ) )
( ( 207.9215698242188 392 264.125 0.7809436321258545 0 ) ( 207.9215698242188 300 264.125 0.7809436321258545 -0.359375 ) ( 207.9215698242188 208 264.125 0.7809436321258545 -0.71875 ) )
)
}
}
// primitive 7
{
brushDef3
{
( 0 0 1 -232 ) ( ( 0.006146905943751335 0.0048218984156847 255.3820648193359 ) ( -0.0048218984156847 0.006146905943751335 1.382948637008667 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0.4472135901451111 0.8944271802902222 0 -400.703369140625 ) ( ( 0.0078125 0 254.6639251708984 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0.7808688282966614 -0.6246950626373291 0 -34.98292541503906 ) ( ( 0.0078125 0 255.3820648193359 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.006146905943751335 -0.0048218984156847 255.3820648193359 ) ( 0.0048218984156847 0.006146905943751335 254.6639251708984 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -0.4472135901451111 -0.8944271802902222 0 150.2637634277344 ) ( ( 0.0078125 0 1.336073637008667 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -0.7808688282966614 0.6246950626373291 0 17.491455078125 ) ( ( 0.0078125 0 0.6179360151290894 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 8
{
brushDef3
{
( 0 0 1 -232 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -112 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 104 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0.4472136497497559 0.8944272994995117 0 -150.2637786865234 ) ( ( 0.015625 0 0 ) ( 0 0.015625 0 ) ) "textures/common/caulk" 0 0 0
}
}
// primitive 9
{
brushDef3
{
( 0 0 1 -232 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -392 ) ( ( 0.0078125 0 0.1875 ) ( 0 0.0078125 1.6875 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -272 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 224 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.125 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 112 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0.7808688282966614 -0.6246950626373291 0 -17.491455078125 ) ( ( 0.015625 0 0 ) ( 0 0.015625 0 ) ) "textures/common/caulk" 0 0 0
}
}
// primitive 10
{
brushDef3
{
( 0 0 1 -528 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -104 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -448 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 520 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 11
{
brushDef3
{
( 0 0 1 -520 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -112 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -448 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 104 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 12
{
brushDef3
{
( 0 1 0 -104 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -448 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 1 -8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 13
{
brushDef3
{
( 0 0 1 -520 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -104 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 8 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -456 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 448 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 14
{
brushDef3
{
( 0 0 1 -520 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -392 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 0 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -8 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 239.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 104 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 15
{
brushDef3
{
( 0 0 1 -136 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 -144 ) ( ( 0.0078125 0 255.875 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -64 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 16
{
brushDef3
{
( 0 0 1 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 0 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 16 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 -144 ) ( ( 0.0078125 0 255.8125 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 17
{
brushDef3
{
( 0 1 0 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 0 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 -144 ) ( ( 0.0078125 0 255.875 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -64 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 1 -16 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 18
{
brushDef3
{
( 0 0 1 -128 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 0 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 16 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 -152 ) ( ( 0.0078125 0 255.875 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -64 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 144 ) ( ( 0.0078125 0 255.875 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 19
{
brushDef3
{
( 0 0 1 -128 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0.0625 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 16 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 255.9375 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 -144 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -72 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 64 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 20
{
brushDef3
{
( 0 0 1 -520 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 -8 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -448 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 128 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 21
{
brushDef3
{
( 1 0 0 -8 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 8 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 1 -128 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 22
{
brushDef3
{
( 0 0 -1 8 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 -1 0 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -448 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 1 -16 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
// primitive 23
{
brushDef3
{
( 0 -1 0 0 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( -1 0 0 -448 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 1 0 -8 ) ( ( 0.0078125 0 0 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 1 -128 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 0 0 -1 16 ) ( ( 0.0078125 0 255.9375 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
( 1 0 0 64 ) ( ( 0.0078125 0 0.0625 ) ( 0 0.0078125 0 ) ) "textures/darkmod/stone/brick/blocks_brown" 0 0 0
}
}
}
// entity 1
{
"classname" "info_player_start"
"name" "info_player_start_1"
"angle" "-3.415094852243783e-006"
"origin" "-416 56 16"
}
// entity 2
{
"classname" "light"
"name" "ambient_world"
"_color" "0.10 0.10 0.10"
"light_center" "0 0 0"
"light_radius" "864 809 776"
"nodiffuse" "0"
"noshadows" "0"
"nospecular" "0"
"origin" "200 216 256"
"parallel" "0"
"texture" "lights/ambientlightnfo"
}
// entity 3
{
"classname" "atdm:weapon_blackjack"
"name" "atdm_weapon_blackjack_1"
"origin" "43 180 12"
"inv_map_start" "1"
}
// entity 4
{
"classname" "atdm:key_ornate"
"name" "gold_key"
"origin" "-79.266 59.094 61.261"
"rotation" "0.0347012 0.0304897 -0.998933 0.997353 -0.0649804 0.0326635 -0.0639141 -0.997421 -0.0326634"
"bind" "dude1"
"bindToJoint" "RightHips_Dummy"
}
// entity 5
{
"classname" "atdm:target_addobjectives"
"name" "atdm_target_addobjectives_1"
"origin" "96.1602 72.1389 24.7429"
"obj1_desc" "Kill whore"
"obj1_ongoing" "0"
"obj1_visible" "1"
"obj1_mandatory" "1"
"obj1_irreversible" "0"
"obj1_state" "0"
"obj1_1_state" "0"
"obj1_1_not" "0"
"obj1_1_irreversible" "0"
"obj1_1_player_responsible" "0"
"obj1_1_type" "kill"
"obj1_1_spec1" "name"
"obj1_1_spec_val1" "whore"
"obj1_1_args" "1"
}
// entity 6
{
"classname" "atdm:weapon_shortsword"
"name" "atdm_weapon_shortsword_1"
"origin" "45 196 11"
"inv_map_start" "1"
}
// entity 7
{
"classname" "path_wait"
"name" "whore_wait"
"origin" "168 312 16"
"wait" "30"
"target" "whore_go"
}
// entity 8
{
"classname" "path_corner"
"name" "whore_go"
"origin" "112 56 16"
"angle" "-173.08041381835937"
"target" "whore_start"
}
// entity 9
{
"classname" "path_corner"
"name" "whore_start"
"origin" "128 320 16"
"angle" "34.346454620361328"
"target" "whore_wait"
}
// entity 10
{
"classname" "atdm:ai_thug_unarmed"
"name" "dude"
"origin" "-334.793 55.1852 16"
"def_attach10" "atdm:prop_key_fancy01"
"pos_attach10" "belt_back_right"
"rotation" "0.999268 0.0382784 0 -0.0382784 0.999268 0 0 0 1"
}
// entity 11
{
"classname" "atdm:ai_thug_unarmed"
"name" "dude1"
"origin" "-62.791 55.206 16"
"rotation" "0.837423 0.546556 0 -0.546556 0.837423 0 0 0 1"
"pos_attach10" "belt_back_right"
"def_attach10" "atdm:prop_key_fancy01"
}
// entity 12
{
"classname" "atdm:ai_guard_female_rogue"
"name" "whore"
"origin" "54.145 236.889 11"
"rotation" "0.263582 -0.964637 0 0.964637 0.263582 0 0 0 1"
"target" "whore_start"
}
// entity 13
{
"classname" "light"
"name" "light_1"
"origin" "168 80 120"
"light_center" "0 0 0"
"light_radius" "208 168 176"
}
// entity 14
{
"classname" "atdm:ammo_broadhead"
"name" "atdm_ammo_broadhead_1"
"origin" "48 152 48"
"inv_ammo_amount" "50"
"inv_map_start" "1"
}
miscount.map (20,541 bytes)   
3313.patch (710 bytes)   
Index: game/Inventory/Inventory.cpp
===================================================================
--- game/Inventory/Inventory.cpp	(revision 5694)
+++ game/Inventory/Inventory.cpp	(working copy)
@@ -650,14 +650,6 @@ CInventoryItemPtr CInventory::PutItem(idEntity *ent, idEntity *owner)
 			// Put the item into its category
 			PutItem(item, category);
 
-			// We added a new inventory item
-			gameLocal.m_MissionData->InventoryCallback(
-				item->GetItemEntity(), item->GetName(), 
-				1, 
-				1, 
-				true
-			);
-
 			if (!ent->spawnArgs.GetBool("inv_map_start", "0") && !ent->spawnArgs.GetBool("inv_no_pickup_message", "0"))
 			{
 				NotifyOwnerAboutPickup( common->Translate( name ), item);
3313.patch (710 bytes)   

Activities

Zbyl

Zbyl

10.02.2013 01:47

reporter   ~0005060

Attached a patch that fixes this problem by removing redundant invocation of InventoryCallback().
grayman

grayman

18.02.2013 21:41

viewer   ~0005076

Applied solution from Zbyl to remove redundant call to InventoryCallback().

rev. 5698:

Inventory.cpp

Issue History

Date Modified Username Field Change
05.02.2013 19:04 Zbyl New Issue
05.02.2013 19:04 Zbyl File Added: miscount.map
10.02.2013 01:46 Zbyl File Added: 3313.patch
10.02.2013 01:47 Zbyl Note Added: 0005060
18.02.2013 21:41 grayman Note Added: 0005076
18.02.2013 21:41 grayman Assigned To => grayman
18.02.2013 21:41 grayman Status new => resolved
18.02.2013 21:41 grayman Resolution open => fixed
18.02.2013 21:41 grayman Fixed in Version => TDM 2.00
18.02.2013 21:41 grayman Target Version => TDM 2.00