mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-12 18:29:02 +00:00
Changed: Use -200.f instead of float(-200)
This commit is contained in:
parent
23f3ef683c
commit
25960c83fc
2 changed files with 14 additions and 8 deletions
|
@ -52,11 +52,13 @@ int EPM_BevelMouseProc::proc(HWND hwnd, int msg, int point, int flags, IPoint2 m
|
||||||
case MOUSE_MOVE:
|
case MOUSE_MOVE:
|
||||||
if (point == 1)
|
if (point == 1)
|
||||||
{
|
{
|
||||||
p0 = vpt->MapScreenToView(om, float(-200));
|
p0 = vpt->MapScreenToView(om, -200.f);
|
||||||
|
|
||||||
// sca 1999.02.24: find worldspace point with om's x value and m's y value
|
// sca 1999.02.24: find worldspace point with om's x value and m's y value
|
||||||
m2.x = om.x;
|
m2.x = om.x;
|
||||||
m2.y = m.y;
|
m2.y = m.y;
|
||||||
p1 = vpt->MapScreenToView(m2, float(-200));
|
p1 = vpt->MapScreenToView(m2, -200.f);
|
||||||
|
|
||||||
amount = Length(p1 - p0);
|
amount = Length(p1 - p0);
|
||||||
ln = IsDlgButtonChecked(po->hOpsPanel, IDC_EM_EXTYPE_B);
|
ln = IsDlgButtonChecked(po->hOpsPanel, IDC_EM_EXTYPE_B);
|
||||||
if (om.y < m.y)
|
if (om.y < m.y)
|
||||||
|
@ -70,14 +72,16 @@ int EPM_BevelMouseProc::proc(HWND hwnd, int msg, int point, int flags, IPoint2 m
|
||||||
ReleaseISpinner(spin);
|
ReleaseISpinner(spin);
|
||||||
}
|
}
|
||||||
ip->RedrawViews(ip->GetTime(), REDRAW_INTERACTIVE);
|
ip->RedrawViews(ip->GetTime(), REDRAW_INTERACTIVE);
|
||||||
}
|
}
|
||||||
else if (point == 2)
|
else if (point == 2)
|
||||||
{
|
{
|
||||||
p0 = vpt->MapScreenToView(om, float(-200));
|
p0 = vpt->MapScreenToView(om, -200.f);
|
||||||
|
|
||||||
// sca 1999.02.24: find worldspace point with om's x value and m's y value
|
// sca 1999.02.24: find worldspace point with om's x value and m's y value
|
||||||
m2.x = om.x;
|
m2.x = om.x;
|
||||||
m2.y = m.y;
|
m2.y = m.y;
|
||||||
p1 = vpt->MapScreenToView(m2, float(-200));
|
p1 = vpt->MapScreenToView(m2, -200.f);
|
||||||
|
|
||||||
if (IsDlgButtonChecked(po->hOpsPanel, IDC_EP_SM_SMOOTH))
|
if (IsDlgButtonChecked(po->hOpsPanel, IDC_EP_SM_SMOOTH))
|
||||||
ln = 0;
|
ln = 0;
|
||||||
else if (IsDlgButtonChecked(po->hOpsPanel, IDC_EP_SM_SMOOTH2))
|
else if (IsDlgButtonChecked(po->hOpsPanel, IDC_EP_SM_SMOOTH2))
|
||||||
|
|
|
@ -43,11 +43,13 @@ int EPM_ExtrudeMouseProc::proc(HWND hwnd, int msg, int point, int flags, IPoint2
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MOUSE_MOVE:
|
case MOUSE_MOVE:
|
||||||
p0 = vpt->MapScreenToView(om, float(-200));
|
p0 = vpt->MapScreenToView(om, -200.f);
|
||||||
|
|
||||||
// sca 1999.02.24: Find m's projection in om's vertical axis:
|
// sca 1999.02.24: Find m's projection in om's vertical axis:
|
||||||
m2.x = om.x;
|
m2.x = om.x;
|
||||||
m2.y = m.y;
|
m2.y = m.y;
|
||||||
p1 = vpt->MapScreenToView(m2, float(-200));
|
p1 = vpt->MapScreenToView(m2, -200.f);
|
||||||
|
|
||||||
amount = Length(p1 - p0);
|
amount = Length(p1 - p0);
|
||||||
if (m.y > om.y)
|
if (m.y > om.y)
|
||||||
amount *= -1.0f;
|
amount *= -1.0f;
|
||||||
|
|
Loading…
Reference in a new issue