This commit is contained in:
Devine Lu Linvega
2017-06-16 09:11:38 -10:00
parent 2f1f627214
commit bedf8bbd58
5 changed files with 44 additions and 27 deletions

View File

@@ -14,7 +14,7 @@ function Magnet(rune)
{
if(!cmd.rect()){ return 0, "Rect?"; }
if(!this.layer){ this.create_layer(true); }
if(!this.layer){ this.create_layer(); }
this.layer.clear();
this.draw_grid(cmd.rect(),cmd.position());
@@ -78,7 +78,7 @@ function Magnet(rune)
this.update_mouse = function(position)
{
if(this.size.width > 4 || this.size.height > 4){
if(!this.layer){ this.create_layer(true); }
if(!this.layer){ this.create_layer(); }
this.layer.clear();
this.draw_grid(this.size,this.rate);
}