fix: Keep ongoing events if present on reported
This commit is contained in:
@@ -23,6 +23,7 @@ namespace Cryville.EEW.Unity.Map {
|
||||
readonly List<int> _displayingOrder = new();
|
||||
|
||||
public int Count => _displayingReports.Count;
|
||||
public int OngoingCount => _displayingReports.Count - (_selected != null ? 1 : 0);
|
||||
|
||||
[SerializeField] MapElementManager m_subManager;
|
||||
|
||||
|
@@ -167,7 +167,7 @@ namespace Cryville.EEW.Unity {
|
||||
Debug.LogError(e);
|
||||
_ongoingReportManager.Report(e);
|
||||
_uiActionQueue.Enqueue(() => {
|
||||
if (m_mapElementManager.Count == 0) {
|
||||
if (m_mapElementManager.OngoingCount == 0) {
|
||||
m_mapElementManager.SetSelected(e);
|
||||
m_cameraController.OnMapElementUpdated();
|
||||
}
|
||||
|
Reference in New Issue
Block a user