Description:
Tidy code up a little.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -12,8 +12,10 | |||
|
12 | 12 | public struct DialogComponent : IComponent/*, IHasEntity*/ { |
|
13 | 13 | public string Knot; |
|
14 | 14 | public string CurrentDialog; |
|
15 | // public Entity Entity {get; set;} | |
|
16 | 15 | public string CurrentSpeaker; |
|
17 | 16 | public List<string> Options; |
|
17 | public bool Hydrated { get { | |
|
18 | return (this.CurrentDialog != null) | |
|
19 | && (this.CurrentSpeaker != null); }} | |
|
18 | 20 | } |
|
19 | 21 | } |
@@ -150,7 +150,7 | |||
|
150 | 150 | //Don't try to use entity we just destroyed: |
|
151 | 151 | && (entity.ID != choiceMessage.Entity.ID) |
|
152 | 152 | |
|
153 |
&& (GetComponent<DialogComponent>(entity). |
|
|
153 | && (!GetComponent<DialogComponent>(entity).Hydrated)) | |
|
154 | 154 | { |
|
155 | 155 | lowestID = entity.ID; |
|
156 | 156 | lowestEntity = entity; |
You need to be logged in to leave comments.
Login now