Fix arrayIntersect oversight

This commit is contained in:
SilentSpike 2015-07-27 18:32:21 +01:00
parent ceb12662e0
commit 47d96835c6
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ _currentModes = GVAR(availableModes);
_newModes = _addModes arrayIntersect [0,1,2];
_newModes append (_currentModes - _removeModes);
_newModes arrayIntersect _newModes;
_newModes = _newModes arrayIntersect _newModes;
_newModes sort true;
// Can't become an empty array

View File

@ -26,7 +26,7 @@ params [["_addSides",[],[[]]], ["_removeSides",[],[[]]]];
_addSides append (GVAR(availableSides) - _removeSides);
// Only need array of unique sides
_addSides arrayIntersect _addSides;
_addSides = _addSides arrayIntersect _addSides;
GVAR(availableSides) = _addSides;

View File

@ -38,7 +38,7 @@ _currentModes = GVAR(availableVisions);
_newModes = _addModes arrayIntersect [-2,-1,0,1,2,3,4,5,6,7];
_newModes append (_currentModes - _removeModes);
_newModes arrayIntersect _newModes;
_newModes = _newModes arrayIntersect _newModes;
_newModes sort true;
// Can't become an empty array