Skip to content

Commit

Permalink
Fixed no editor changes tutorial being able to prevent multicellular …
Browse files Browse the repository at this point in the history
…editor

allowing exit, which is pretty bad as the cell editor is not visible so there is no feedback to the player as to what might be going wrong
  • Loading branch information
hhyyrylainen committed Apr 12, 2024
1 parent 2dcfb16 commit 3f42a32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/microbe_stage/editor/CellEditorComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,9 @@ public override bool CanFinishEditing(IEnumerable<EditorUserOverride> userOverri
{
var tutorialState = Editor.CurrentGame.TutorialState;

if (tutorialState.Enabled)
// In the multicellular editor the cell editor might not be visible so preventing exiting the editor
// without explanation is not a good idea so that's why this check is here
if (tutorialState.Enabled && !IsMulticellularEditor)
{
tutorialState.SendEvent(TutorialEventType.MicrobeEditorNoChangesMade, EventArgs.Empty, this);

Expand Down

0 comments on commit 3f42a32

Please sign in to comment.