From 168b48044f2204cd793004d1d26d6866ba74c496 Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Sun, 22 Apr 2018 16:30:20 -0400 Subject: [PATCH] one more tweak --- src/npc/removeActiveSlave.tw | 2 +- src/uncategorized/BackwardsCompatibility.tw | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/npc/removeActiveSlave.tw b/src/npc/removeActiveSlave.tw index 25d40597a23..ad4466db4d4 100644 --- a/src/npc/removeActiveSlave.tw +++ b/src/npc/removeActiveSlave.tw @@ -156,7 +156,7 @@ <<set _dontDeleteMe = 1>> <</if>> <</if>> - <<if _dontDeleteMe == 1>> /* avoid going through this loop if possible */ + <<if _dontDeleteMe == 0>> /* avoid going through this loop if possible */ <<for _rasi = 0; _rasi < _SL; _rasi++>> <<if $slaves[_rasi].ID != $activeSlave.ID && isImpregnatedBy($slaves[_rasi], $activeSlave)>> /* have we impregnated a slave that is not ourself? */ <<set _dontDeleteMe = 1>> diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw index cfe984d430f..6e304a2972d 100644 --- a/src/uncategorized/BackwardsCompatibility.tw +++ b/src/uncategorized/BackwardsCompatibility.tw @@ -3043,9 +3043,9 @@ Setting missing slave variables: <<set _dontDeleteMe = 1>> <</if>> <</if>> - <<if _dontDeleteMe == 1>> /* avoid going through this loop if possible */ + <<if _dontDeleteMe == 0>> /* avoid going through this loop if possible */ <<for _bci2 = 0; _bci2 < $slaves.length; _bci2++>> - <<if $slaves[_bci2].ID != _Slave.ID && isImpregnatedBy($slaves[_bci2], _Slave)>> /* have we impregnated a slave that is not ourself? */ + <<if isImpregnatedBy($slaves[_bci2], _Slave)>> /* have we impregnated a slave on the slaves array? */ <<set _dontDeleteMe = 1>> <<break>> <</if>> -- GitLab