on enlève que quand c'est dans la queue
This commit is contained in:
parent
7a1ca1ef65
commit
0e3dfd140e
@ -95,7 +95,8 @@ public class BasicInstructionQueue implements InstructionQueue {
|
|||||||
case REACHEDFLOORSIGNAL:
|
case REACHEDFLOORSIGNAL:
|
||||||
currentFloor = event.getCurrentFloor();
|
currentFloor = event.getCurrentFloor();
|
||||||
currentDirection = event.getCurrentDirection();
|
currentDirection = event.getCurrentDirection();
|
||||||
removeInstruction(currentFloor);
|
if (currentFloor == getNextInstruction())
|
||||||
|
removeInstruction(currentFloor);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user