| 1373 | } |
| 1374 | |
| 1375 | void SaveItem(ItemStruct *pItem) |
| 1376 | { |
| 1377 | CopyInt(&pItem->_iSeed, tbuff); |
| 1378 | CopyShort(&pItem->_iCreateInfo, tbuff); |
| 1379 | tbuff += 2; // Alignment |
| 1380 | CopyInt(&pItem->_itype, tbuff); |
| 1381 | CopyInt(&pItem->_ix, tbuff); |
| 1382 | CopyInt(&pItem->_iy, tbuff); |
| 1383 | CopyInt(&pItem->_iAnimFlag, tbuff); |
| 1384 | tbuff += 4; // Skip pointer _iAnimData |
| 1385 | CopyInt(&pItem->_iAnimLen, tbuff); |
| 1386 | CopyInt(&pItem->_iAnimFrame, tbuff); |
| 1387 | CopyInt(&pItem->_iAnimWidth, tbuff); |
| 1388 | CopyInt(&pItem->_iAnimWidth2, tbuff); |
| 1389 | CopyInt(&pItem->_iDelFlag, tbuff); |
| 1390 | CopyChar(&pItem->_iSelFlag, tbuff); |
| 1391 | tbuff += 3; // Alignment |
| 1392 | CopyInt(&pItem->_iPostDraw, tbuff); |
| 1393 | CopyInt(&pItem->_iIdentified, tbuff); |
| 1394 | CopyChar(&pItem->_iMagical, tbuff); |
| 1395 | CopyBytes(&pItem->_iName, 64, tbuff); |
| 1396 | CopyBytes(&pItem->_iIName, 64, tbuff); |
| 1397 | CopyChar(&pItem->_iLoc, tbuff); |
| 1398 | CopyChar(&pItem->_iClass, tbuff); |
| 1399 | tbuff += 1; // Alignment |
| 1400 | CopyInt(&pItem->_iCurs, tbuff); |
| 1401 | CopyInt(&pItem->_ivalue, tbuff); |
| 1402 | CopyInt(&pItem->_iIvalue, tbuff); |
| 1403 | CopyInt(&pItem->_iMinDam, tbuff); |
| 1404 | CopyInt(&pItem->_iMaxDam, tbuff); |
| 1405 | CopyInt(&pItem->_iAC, tbuff); |
| 1406 | CopyInt(&pItem->_iFlags, tbuff); |
| 1407 | CopyInt(&pItem->_iMiscId, tbuff); |
| 1408 | CopyInt(&pItem->_iSpell, tbuff); |
| 1409 | CopyInt(&pItem->_iCharges, tbuff); |
| 1410 | CopyInt(&pItem->_iMaxCharges, tbuff); |
| 1411 | CopyInt(&pItem->_iDurability, tbuff); |
| 1412 | CopyInt(&pItem->_iMaxDur, tbuff); |
| 1413 | CopyInt(&pItem->_iPLDam, tbuff); |
| 1414 | CopyInt(&pItem->_iPLToHit, tbuff); |
| 1415 | CopyInt(&pItem->_iPLAC, tbuff); |
| 1416 | CopyInt(&pItem->_iPLStr, tbuff); |
| 1417 | CopyInt(&pItem->_iPLMag, tbuff); |
| 1418 | CopyInt(&pItem->_iPLDex, tbuff); |
| 1419 | CopyInt(&pItem->_iPLVit, tbuff); |
| 1420 | CopyInt(&pItem->_iPLFR, tbuff); |
| 1421 | CopyInt(&pItem->_iPLLR, tbuff); |
| 1422 | CopyInt(&pItem->_iPLMR, tbuff); |
| 1423 | CopyInt(&pItem->_iPLMana, tbuff); |
| 1424 | CopyInt(&pItem->_iPLHP, tbuff); |
| 1425 | CopyInt(&pItem->_iPLDamMod, tbuff); |
| 1426 | CopyInt(&pItem->_iPLGetHit, tbuff); |
| 1427 | CopyInt(&pItem->_iPLLight, tbuff); |
| 1428 | CopyChar(&pItem->_iSplLvlAdd, tbuff); |
| 1429 | CopyChar(&pItem->_iRequest, tbuff); |
| 1430 | tbuff += 2; // Alignment |
| 1431 | CopyInt(&pItem->_iUid, tbuff); |
| 1432 | CopyInt(&pItem->_iFMinDam, tbuff); |
no test coverage detected