mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:13:05 +02:00
push last positions to array
This commit is contained in:
parent
47471e837f
commit
bc4200d8d7
2 changed files with 7 additions and 3 deletions
|
@ -439,6 +439,7 @@
|
||||||
position.y = startPosition.y - (row * VERTICAL_SPACING);
|
position.y = startPosition.y - (row * VERTICAL_SPACING);
|
||||||
|
|
||||||
originalPositions.push(position);
|
originalPositions.push(position);
|
||||||
|
lastPositions.push(position);
|
||||||
|
|
||||||
var targetProperties = {
|
var targetProperties = {
|
||||||
name: 'Target',
|
name: 'Target',
|
||||||
|
|
|
@ -411,6 +411,7 @@ MasterReset = function() {
|
||||||
position.y = startPosition.y - (row * VERTICAL_SPACING);
|
position.y = startPosition.y - (row * VERTICAL_SPACING);
|
||||||
|
|
||||||
originalPositions.push(position);
|
originalPositions.push(position);
|
||||||
|
lastPositions.push(position);
|
||||||
|
|
||||||
var targetProperties = {
|
var targetProperties = {
|
||||||
name: 'Target',
|
name: 'Target',
|
||||||
|
@ -429,8 +430,10 @@ MasterReset = function() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
var target = Entities.addEntity(targetProperties);
|
var target = Entities.addEntity(targetProperties);
|
||||||
targets.push(target);
|
targets.push(target);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue