Some drills not removing voxels
Reported
Sandbox.Game.GameSystems.MyShipMiningSystem.ScheduleCutouts() : void @0600448F
The "for" loop works correctly only on the first iteration. The first drill is lost on the following cycles.
You need to add "i--" to count the missed drill on the next cycle.
int length = i - num; i--;
How to create bad drill at small/large grid.. It's simple:
For example add 4 drills: Drill 1 and drill 2 in cluster 1. Drill 3 and drill 4 in cluster 2.
What happens in the code step by step:
As you see drill 3 was throw out of lists of remove voxels.After trow out "i++" from the iterator section of the "for" cycle and add "i++" before "while" cycle we will fix bug and do not compare drill with itself.
Now all 4 drills has added to lists of remove voxels.
How to create bad drill at small/large grid.. It's simple:
For example add 4 drills: Drill 1 and drill 2 in cluster 1. Drill 3 and drill 4 in cluster 2.
What happens in the code step by step:
As you see drill 3 was throw out of lists of remove voxels.After trow out "i++" from the iterator section of the "for" cycle and add "i++" before "while" cycle we will fix bug and do not compare drill with itself.
Now all 4 drills has added to lists of remove voxels.
Hello!
Thank you for letting us know about this issue. This has been reported internally
Kind Regards
Laura, QA Department
Hello!
Thank you for letting us know about this issue. This has been reported internally
Kind Regards
Laura, QA Department
Replies have been locked on this page!