Merge pull request #1023 from redbirdly/patch-4
This commit is contained in:
commit
4a77e4aca1
|
|
@ -223,16 +223,16 @@ elements.four_bit_selector_circuit = {
|
|||
cc_stableTick: function(pixel) {
|
||||
var pins = [
|
||||
// First 4-bit input (A)
|
||||
[-1, -2, true], // A0
|
||||
[-3, -2, true], // A1
|
||||
[-5, -2, true], // A2
|
||||
[-7, -2, true], // A3
|
||||
[-7, -2, true], // A0
|
||||
[-5, -2, true], // A1
|
||||
[-3, -2, true], // A2
|
||||
[-1, -2, true], // A3
|
||||
|
||||
// Second 4-bit input (B)
|
||||
[7, -2, true], // B0
|
||||
[5, -2, true], // B1
|
||||
[3, -2, true], // B2
|
||||
[1, -2, true], // B3
|
||||
[1, -2, true], // B0
|
||||
[3, -2, true], // B1
|
||||
[5, -2, true], // B2
|
||||
[7, -2, true], // B3
|
||||
|
||||
// Selection pin (Sel)
|
||||
[9, 0, true], // Selection (Sel)
|
||||
|
|
@ -1930,7 +1930,7 @@ document.addEventListener('keydown', function(event) {
|
|||
}
|
||||
});
|
||||
|
||||
function drawCircuitExtras() {
|
||||
function drawCircuitExtras(ctx) {
|
||||
if (elements[currentElement].isCircuitCore && elements[currentElement].previewSize) {
|
||||
var circuitWidth = elements[currentElement].previewSize[0];
|
||||
var circuitHeight = elements[currentElement].previewSize[1];
|
||||
|
|
@ -1983,7 +1983,7 @@ function runLogicTick() {
|
|||
}
|
||||
|
||||
function stabilizeLogicGates() {
|
||||
var logicgatesElements = ["output","logic_wire","not_gate","and_gate","xor_gate","or_gate","nand_gate","nor_gate","nxor_gate","E2L_lever","E2L_button","L2E_constant","logic_transmitter","logic_receiver","logic_shock","logic_unshock"]
|
||||
var logicgatesElements = ["output","logic_wire","not_gate","and_gate","xor_gate","or_gate","nand_gate","nor_gate","nxor_gate","E2L_lever","E2L_button","L2E_constant","logic_shock","logic_unshock"]
|
||||
|
||||
for (var i = 0;i < logicgatesElements.length;i++) {
|
||||
elements[logicgatesElements[i]].cc_stableTick = elements[logicgatesElements[i]].tick;
|
||||
|
|
|
|||
Loading…
Reference in New Issue