Angle control: in some cases angle was set to 360 instead of 0 when clicking on the control.

GLDEFS parser: added a warning when the interval of animated dynamic light is 0.
Visual mode: fixed a crash when an angle of animated dynamic light was set to 0 and light animation was enabled.
Tag explorer: removed unnecessary mode switching when selecting map elements of the same type.
This commit is contained in:
MaxED 2014-03-11 09:44:39 +00:00
parent fb19f62fdb
commit abb77e4aab
6 changed files with 18 additions and 18 deletions

View file

@ -449,6 +449,11 @@ namespace CodeImp.DoomBuilder.VisualModes
return;
}
if(interval == 0) {
lightRadius = 0;
return;
}
float time = General.Clock.CurrentTime;
float rMin = Math.Min(lightPrimaryRadius, lightSecondaryRadius);
float rMax = Math.Max(lightPrimaryRadius, lightSecondaryRadius);