Set toggledLayers[action.switchLayer.layer] = true

This commit is contained in:
László Monda
2018-06-07 04:03:45 +02:00
parent 64f54c268b
commit a54e7ac0a8

View File

@@ -21,7 +21,7 @@ void updateLayerStates(void)
if (action.switchLayer.mode != SwitchLayerMode_Toggle) {
heldLayers[action.switchLayer.layer] = true;
} else if (!keyState->previous && keyState->current) {
toggledLayers[action.switchLayer.layer] = action.switchLayer.mode;
toggledLayers[action.switchLayer.layer] = true;
}
}
}