Code cleanup.
This commit is contained in:
@@ -24,6 +24,10 @@ namespace Cryville.Crtr {
|
|||||||
SetIdle();
|
SetIdle();
|
||||||
}
|
}
|
||||||
catch (ResultException) {
|
catch (ResultException) {
|
||||||
|
if (dc != null) {
|
||||||
|
dc.Dispose();
|
||||||
|
dc = null;
|
||||||
|
}
|
||||||
Logger.Log("main", 3, "Discord", "Cannot connect to Discord");
|
Logger.Log("main", 3, "Discord", "Cannot connect to Discord");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -67,7 +67,6 @@ namespace Cryville.Crtr.Event {
|
|||||||
var batch = GetEventBatch();
|
var batch = GetEventBatch();
|
||||||
Time = etime;
|
Time = etime;
|
||||||
beat = ebeat;
|
beat = ebeat;
|
||||||
bool flag = false;
|
|
||||||
foreach (var ev in batch) {
|
foreach (var ev in batch) {
|
||||||
EventContainer con = null;
|
EventContainer con = null;
|
||||||
if (table.ContainsKey(ev)) con = table[ev].Container;
|
if (table.ContainsKey(ev)) con = table[ev].Container;
|
||||||
@@ -83,9 +82,6 @@ namespace Cryville.Crtr.Event {
|
|||||||
sev.Origin = pev;
|
sev.Origin = pev;
|
||||||
}
|
}
|
||||||
stampedEvents.Add(sev);
|
stampedEvents.Add(sev);
|
||||||
if (ev.Priority >= 0) {
|
|
||||||
flag = true;
|
|
||||||
}
|
|
||||||
if (ev is Chart.Signature) {
|
if (ev is Chart.Signature) {
|
||||||
var tev = (Chart.Signature)ev;
|
var tev = (Chart.Signature)ev;
|
||||||
if (tev.tempo != null) tempo = (float)tev.tempo;
|
if (tev.tempo != null) tempo = (float)tev.tempo;
|
||||||
|
Reference in New Issue
Block a user