Adding devices is part of Actions

This commit is contained in:
2018-05-14 10:41:52 -05:00
parent a445ce5bd3
commit 8b82150bbe
5 changed files with 93 additions and 40 deletions

View File

@ -1653,10 +1653,10 @@ namespace EduNetworkBuilder
//We are doing a replay and enough time has passed from the last replay...
NBSettings Settings = NB.GetSettings();
ActionCollection AC = Settings.GetUserActionCollection();
bool Success = AC.RunAction(NextReplayIndex++);
ActionClass Success = AC.RunAction(NextReplayIndex++);
NextReplayAction = DateTime.UtcNow.AddMilliseconds(NB.MillisecondsBetweenReplays);
if(Success)
if(Success != null)
{
//we did something. keep replaying
NB.MarkToUpdate();