Description:
Fix issue with area generation.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -194,7 +194,7 | |||||
|
194 | - Ingame Menu @done(2021-06-22) |
|
194 | - Ingame Menu @done(2021-06-22) |
|
195 | - Main Menu |
|
195 | - Main Menu |
|
196 | Simulation: |
|
196 | Simulation: |
|
197 | - Expired areas can't be reused. |
|
197 | - Expired areas can't be reused. @done(2021-08-07) |
|
198 | Misc: |
|
198 | Misc: |
|
199 | - Exits are messy (does Encompass add threading?) |
|
199 | - Exits are messy (does Encompass add threading?) |
|
200 | [xcb] Unknown sequence number while appending request |
|
200 | [xcb] Unknown sequence number while appending request |
@@ -123,10 +123,7 | |||||
|
123 | organization_type = GetComponent<OrganizationTypeComponent>(contractOrganizations[organization_index]).type; |
|
123 | organization_type = GetComponent<OrganizationTypeComponent>(contractOrganizations[organization_index]).type; |
|
124 | } |
|
124 | } |
|
125 |
|
125 | ||
|
126 | foreach (var (entity, status) in ReadEntities<AreaComponent>().SelectWhereF((e) => (e, GetComponent<ContractStatusComponent>(e)), |
|
126 | foreach (var (entity, status) in ReadEntities<AreaComponent>().SelectWhereF((e) => (e, GetComponent<ContractStatusComponent>(e)), (e) => ((e.Item2.status != ContractStatus.Broken) && (e.Item2.status != ContractStatus.Rejected) && (e.Item2.status != ContractStatus.Expired)))) { |
|
127 | (e) => ((e.Item2.status != ContractStatus.Broken) && (e.Item2.status != ContractStatus.Expired))) |
|
||
|
128 | ) |
|
||
|
129 | { |
|
||
|
130 | var entitySquares = GetComponent<AreaComponent>(entity).squares; |
|
127 | var entitySquares = GetComponent<AreaComponent>(entity).squares; |
|
131 | occupied.AddRange(entitySquares); |
|
128 | occupied.AddRange(entitySquares); |
|
132 | } |
|
129 | } |
You need to be logged in to leave comments.
Login now