clean up warnings, make message fit in messagebar

This commit is contained in:
Jeremy Penner 2011-02-04 11:16:07 -08:00
parent 02fcfd66ca
commit 54720c58bb

View file

@ -234,13 +234,14 @@ package
dragView = null;
}
var rgtok: Array;
if (Input.mousePressed)
{
if (Input.check(Key.SHIFT)) // shift-click -- begin view dragging
dragView = Drag.Claim();
else // click -- select a token
{
var rgtok: Array = [];
rgtok = [];
getLayer(LAYER_TOKENS, rgtok);
tokSelected = null;
// getLayer returns tokens in draw order, which means furthest back first
@ -269,7 +270,7 @@ package
var fDirty:Boolean = false;
if (!fForceQuit)
{
var rgtok: Array = [];
rgtok = [];
getLayer(LAYER_TOKENS, rgtok);
for each (var tok:Token in rgtok)
{
@ -283,7 +284,7 @@ package
if (fDirty && !fForceQuit)
{
fForceQuit = true;
ShowMsg("Unsaved! Press ESC again to confirm.", function() { fForceQuit = false; });
ShowMsg("Unsaved! Press ESC again to quit.", function():void { fForceQuit = false; });
}
else
FP.world = dgWorldPrev();