Revert "Decrement instead of increment queue value"

This reverts commit 2f308c3ab6.
This commit is contained in:
Andrew Cassidy 2020-06-01 21:28:01 -07:00
parent 5fef800f21
commit 9bf18a7ce4
No known key found for this signature in database
GPG Key ID: 963017B38FD477A1
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0d77625cd9c185ff2773e829962cdff33b0e2a3bb9569bf545e134c4799526f9
oid sha256:b805b02f176fc212845fd04be41bf49ab22eae5b8a92e6fa404dc05f93ae1ded
size 28160

View File

@ -50,7 +50,7 @@ namespace ConformalDecals {
[KSPField] public MaterialPropertyCollection materialProperties;
[KSPField] public Material decalMaterial;
private static int _decalQueueCounter = 0;
private static int _decalQueueCounter = -1;
private List<ProjectionTarget> _targets;
@ -63,9 +63,9 @@ namespace ConformalDecals {
private int DecalQueue {
get {
_decalQueueCounter--;
if (_decalQueueCounter < decalQueueRange.x) {
_decalQueueCounter = (int) decalQueueRange.y;
_decalQueueCounter++;
if (_decalQueueCounter > decalQueueRange.y || _decalQueueCounter < decalQueueRange.x) {
_decalQueueCounter = (int) decalQueueRange.x;
}
this.Log($"returning decal queue value {_decalQueueCounter}");