mousewheel control for circle points insertion

git-svn-id: https://svn.eduke32.com/eduke32@758 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-06-03 07:54:20 +00:00
parent 53577209f5
commit 34b7ac0714

View file

@ -4475,6 +4475,23 @@ void overheadeditor(void)
posy = mousyplc; posy = mousyplc;
} }
if (circlewall != -1 && (keystatus[0x4a] || (bstatus&32 && !(keystatus[0x1d]|keystatus[0x9d])))) // -
{
if (circlepoints > 1)
circlepoints--;
keystatus[0x4a] = 0;
mouseb &= ~32;
bstatus &= ~32;
}
if (circlewall != -1 && (keystatus[0x4e] || (bstatus&16 && !(keystatus[0x1d]|keystatus[0x9d])))) // +
{
if (circlepoints < 63)
circlepoints++;
keystatus[0x4e] = 0;
mouseb &= ~16;
bstatus &= ~16;
}
if ((keystatus[buildkeys[BK_MOVEUP]] || (bstatus&16)) && (zoom < 16384)) if ((keystatus[buildkeys[BK_MOVEUP]] || (bstatus&16)) && (zoom < 16384))
{ {
zoom += synctics*(zoom>>4); zoom += synctics*(zoom>>4);
@ -4821,18 +4838,6 @@ void overheadeditor(void)
} }
keystatus[0x2e] = 0; keystatus[0x2e] = 0;
} }
if (keystatus[0x4a]) // -
{
if (circlepoints > 1)
circlepoints--;
keystatus[0x4a] = 0;
}
if (keystatus[0x4e]) // +
{
if (circlepoints < 63)
circlepoints++;
keystatus[0x4e] = 0;
}
bad = (keystatus[0x39]); //Gotta do this to save lots of 3 spaces! bad = (keystatus[0x39]); //Gotta do this to save lots of 3 spaces!