1
0
Fork 0

Off-by-one spotted by Clement.

This commit is contained in:
James Turner 2013-05-12 11:36:33 +01:00
parent 915626afa7
commit 0422ea5672

View file

@ -191,7 +191,7 @@ void Transponder::update(double dt)
} }
} }
if (_knob > KNOB_ON) { if (_knob >= KNOB_ON) {
_transmittedId_node->setIntValue(_idCode_node->getIntValue()); _transmittedId_node->setIntValue(_idCode_node->getIntValue());
} else { } else {
_transmittedId_node->setIntValue(INVALID_ID); _transmittedId_node->setIntValue(INVALID_ID);