mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-19 01:44:44 -04:00
moved the declaration of a variable
This commit is contained in:
parent
632d8910c6
commit
a488b6cc40
@ -219,8 +219,8 @@ public class Model implements Iterable<Node> {
|
||||
* @throws NodeException NodeException
|
||||
*/
|
||||
public void doStep(boolean noise) throws NodeException {
|
||||
int counter = 0;
|
||||
if (needsUpdate()) {
|
||||
int counter = 0;
|
||||
while (needsUpdate()) {
|
||||
if (counter++ > MAX_LOOP_COUNTER) {
|
||||
if (oscillatingNodes == null)
|
||||
@ -237,7 +237,6 @@ public class Model implements Iterable<Node> {
|
||||
}
|
||||
} else
|
||||
fireEvent(ModelEvent.STEP);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user