MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnDefaultSize

Method OnDefaultSize

editor/WorldWeaponsDialog.cpp:1702–1713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1700}
1701
1702void CWorldWeaponsDialog::OnDefaultSize() {
1703 int n = D3EditState.current_weapon;
1704 poly_model *pm = GetPolymodelPointer(Weapons[n].fire_image_handle);
1705
1706 if (!pm->new_style || !(pm->flags & PMF_TIMED)) {
1707 OutrageMessageBox("This model must be a timed oof for this function to work!");
1708 return;
1709 }
1710
1711 ComputeDefaultSize(OBJ_WEAPON, Weapons[n].fire_image_handle, &Weapons[n].size);
1712 UpdateDialog();
1713}
1714
1715void CWorldWeaponsDialog::OnKillfocusWeaponImpactTimeEdit() {
1716 CEdit *ebox;

Callers

nothing calls this directly

Calls 3

GetPolymodelPointerFunction · 0.85
OutrageMessageBoxFunction · 0.85
ComputeDefaultSizeFunction · 0.85

Tested by

no test coverage detected