| 465 | } |
| 466 | |
| 467 | void LoadMonster(int i) |
| 468 | { |
| 469 | MonsterStruct *pMonster = &monster[i]; |
| 470 | |
| 471 | CopyInt(tbuff, &pMonster->_mMTidx); |
| 472 | CopyInt(tbuff, &pMonster->_mmode); |
| 473 | CopyChar(tbuff, &pMonster->_mgoal); |
| 474 | tbuff += 3; // Alignment |
| 475 | CopyInt(tbuff, &pMonster->_mgoalvar1); |
| 476 | CopyInt(tbuff, &pMonster->_mgoalvar2); |
| 477 | CopyInt(tbuff, &pMonster->_mgoalvar3); |
| 478 | CopyInt(tbuff, &pMonster->field_18); |
| 479 | CopyChar(tbuff, &pMonster->_pathcount); |
| 480 | tbuff += 3; // Alignment |
| 481 | CopyInt(tbuff, &pMonster->_mx); |
| 482 | CopyInt(tbuff, &pMonster->_my); |
| 483 | CopyInt(tbuff, &pMonster->_mfutx); |
| 484 | CopyInt(tbuff, &pMonster->_mfuty); |
| 485 | CopyInt(tbuff, &pMonster->_moldx); |
| 486 | CopyInt(tbuff, &pMonster->_moldy); |
| 487 | CopyInt(tbuff, &pMonster->_mxoff); |
| 488 | CopyInt(tbuff, &pMonster->_myoff); |
| 489 | CopyInt(tbuff, &pMonster->_mxvel); |
| 490 | CopyInt(tbuff, &pMonster->_myvel); |
| 491 | CopyInt(tbuff, &pMonster->_mdir); |
| 492 | CopyInt(tbuff, &pMonster->_menemy); |
| 493 | CopyChar(tbuff, &pMonster->_menemyx); |
| 494 | CopyChar(tbuff, &pMonster->_menemyy); |
| 495 | CopyShort(tbuff, &pMonster->falign_52); |
| 496 | |
| 497 | tbuff += 4; // Skip pointer _mAnimData |
| 498 | CopyInt(tbuff, &pMonster->_mAnimDelay); |
| 499 | CopyInt(tbuff, &pMonster->_mAnimCnt); |
| 500 | CopyInt(tbuff, &pMonster->_mAnimLen); |
| 501 | CopyInt(tbuff, &pMonster->_mAnimFrame); |
| 502 | CopyInt(tbuff, &pMonster->_meflag); |
| 503 | CopyInt(tbuff, &pMonster->_mDelFlag); |
| 504 | CopyInt(tbuff, &pMonster->_mVar1); |
| 505 | CopyInt(tbuff, &pMonster->_mVar2); |
| 506 | CopyInt(tbuff, &pMonster->_mVar3); |
| 507 | CopyInt(tbuff, &pMonster->_mVar4); |
| 508 | CopyInt(tbuff, &pMonster->_mVar5); |
| 509 | CopyInt(tbuff, &pMonster->_mVar6); |
| 510 | CopyInt(tbuff, &pMonster->_mVar7); |
| 511 | CopyInt(tbuff, &pMonster->_mVar8); |
| 512 | CopyInt(tbuff, &pMonster->_mmaxhp); |
| 513 | CopyInt(tbuff, &pMonster->_mhitpoints); |
| 514 | |
| 515 | CopyChar(tbuff, &pMonster->_mAi); |
| 516 | CopyChar(tbuff, &pMonster->_mint); |
| 517 | CopyShort(tbuff, &pMonster->falign_9A); |
| 518 | CopyInt(tbuff, &pMonster->_mFlags); |
| 519 | CopyChar(tbuff, &pMonster->_msquelch); |
| 520 | tbuff += 3; // Alignment |
| 521 | CopyInt(tbuff, &pMonster->falign_A4); |
| 522 | CopyInt(tbuff, &pMonster->_lastx); |
| 523 | CopyInt(tbuff, &pMonster->_lasty); |
| 524 | CopyInt(tbuff, &pMonster->_mRndSeed); |