1
0
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:
Yoshie2000 2020-08-31 13:36:26 +02:00
parent 39c68ee97c
commit f261d54dbb

View File

@ -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;
}