Returns a unique value for this ship
| 691 | |
| 692 | // Returns a unique value for this ship |
| 693 | void MultiProcessShipChecksum(MD5 *md5, int ship_index) { |
| 694 | ship *s = &Ships[ship_index]; |
| 695 | |
| 696 | md5->update(s->phys_info.full_thrust); |
| 697 | md5->update(s->phys_info.full_rotthrust); |
| 698 | |
| 699 | md5->update(s->phys_info.mass); |
| 700 | md5->update(s->phys_info.drag); |
| 701 | md5->update(s->phys_info.rotdrag); |
| 702 | |
| 703 | md5->update(s->phys_info.flags); |
| 704 | poly_model *pm = GetPolymodelPointer(s->model_handle); |
| 705 | md5->update(pm->rad); |
| 706 | |
| 707 | for (int w = 0; w < MAX_PLAYER_WEAPONS; w++) { |
| 708 | |
| 709 | for (int i = 0; i < MAX_WB_FIRING_MASKS; i++) { |
| 710 | md5->update(s->static_wb[w].gp_fire_wait[i]); |
| 711 | md5->update(s->static_wb[w].gp_fire_masks[i]); |
| 712 | } |
| 713 | |
| 714 | md5->update(s->static_wb[w].energy_usage); |
| 715 | md5->update(s->static_wb[w].ammo_usage); |
| 716 | md5->update(s->fire_flags[w]); |
| 717 | } |
| 718 | } |
| 719 | |
| 720 | // Server is telling us about the level |
| 721 | void MultiDoLevelInfo(uint8_t *data) { |
no test coverage detected