fix dumb warning
This commit is contained in:
parent
d91f4695cd
commit
c6c09e50ff
|
@ -235,6 +235,7 @@ package
|
||||||
}
|
}
|
||||||
|
|
||||||
var rgtok: Array;
|
var rgtok: Array;
|
||||||
|
var tok: Token;
|
||||||
if (Input.mousePressed)
|
if (Input.mousePressed)
|
||||||
{
|
{
|
||||||
if (Input.check(Key.SHIFT)) // shift-click -- begin view dragging
|
if (Input.check(Key.SHIFT)) // shift-click -- begin view dragging
|
||||||
|
@ -247,7 +248,7 @@ package
|
||||||
// getLayer returns tokens in draw order, which means furthest back first
|
// getLayer returns tokens in draw order, which means furthest back first
|
||||||
for (var itok:int = rgtok.length - 1; itok >= 0; itok --)
|
for (var itok:int = rgtok.length - 1; itok >= 0; itok --)
|
||||||
{
|
{
|
||||||
var tok: Token = rgtok[itok];
|
tok = rgtok[itok];
|
||||||
if (tok.collidePoint(tok.x, tok.y, Input.mouseX, Input.mouseY))
|
if (tok.collidePoint(tok.x, tok.y, Input.mouseX, Input.mouseY))
|
||||||
{
|
{
|
||||||
tokSelected = tok;
|
tokSelected = tok;
|
||||||
|
@ -272,7 +273,7 @@ package
|
||||||
{
|
{
|
||||||
rgtok = [];
|
rgtok = [];
|
||||||
getLayer(LAYER_TOKENS, rgtok);
|
getLayer(LAYER_TOKENS, rgtok);
|
||||||
for each (var tok:Token in rgtok)
|
for each (tok in rgtok)
|
||||||
{
|
{
|
||||||
if (tok.FDirty())
|
if (tok.FDirty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue