mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-05-28 23:41:31 +00:00
very minor whitespace changes
This commit is contained in:
parent
45a05fe236
commit
222f4330e9
|
@ -233,6 +233,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
callback();
|
callback();
|
||||||
|
|
||||||
var nextTick = tick + interval;
|
var nextTick = tick + interval;
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
continueLoop(nextTick);
|
continueLoop(nextTick);
|
||||||
|
@ -258,7 +259,7 @@
|
||||||
// TODO: remove this tick loop entirely,
|
// TODO: remove this tick loop entirely,
|
||||||
// and just have the animation loop calculate which
|
// and just have the animation loop calculate which
|
||||||
// simulation to pick each time.
|
// simulation to pick each time.
|
||||||
|
|
||||||
loop(worlds, tickDuration, function() {
|
loop(worlds, tickDuration, function() {
|
||||||
debugSimulationCounter++;
|
debugSimulationCounter++;
|
||||||
worlds.advance(fastForward);
|
worlds.advance(fastForward);
|
||||||
|
@ -273,7 +274,7 @@
|
||||||
" " + debugAnimationCounter +
|
" " + debugAnimationCounter +
|
||||||
" " + debugSimulationCounter);
|
" " + debugSimulationCounter);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Keyboard event listener for fast-forward control
|
// Keyboard event listener for fast-forward control
|
||||||
// TODO: dispose of this if we start a new worlds object.
|
// TODO: dispose of this if we start a new worlds object.
|
||||||
// Or just have it not mutate fastForward.
|
// Or just have it not mutate fastForward.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user