mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Replaced logical XOR (^) with !==
This commit is contained in:
parent
39c68ee97c
commit
f261d54dbb
@ -117,7 +117,7 @@ export class LogicGateSystem extends GameSystemWithFilter {
|
||||
*/
|
||||
compute_XOR(parameters) {
|
||||
assert(parameters.length === 2, "bad parameter count for XOR");
|
||||
return isTruthyItem(parameters[0]) ^ isTruthyItem(parameters[1])
|
||||
return isTruthyItem(parameters[0]) !== isTruthyItem(parameters[1])
|
||||
? BOOL_TRUE_SINGLETON
|
||||
: BOOL_FALSE_SINGLETON;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user