Skip to content

Commit

Permalink
make lanecover slightly less unwieldy
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Dec 7, 2016
1 parent 0700e16 commit db03a65
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,19 +257,20 @@ end;

local function Update(self)
t.InitCommand=cmd(SetUpdateFunction,Update);
self:SetUpdateRate(0.5)
if enabledP1 then
if moveDownP1 then
if isReverseP1 then
heightP1 = math.min(SCREEN_BOTTOM,math.max(0,heightP1+1))
heightP1 = math.min(SCREEN_BOTTOM,math.max(0,heightP1+0.1))
else
heightP1 = math.min(SCREEN_BOTTOM,math.max(0,heightP1-1))
heightP1 = math.min(SCREEN_BOTTOM,math.max(0,heightP1-0.1))
end;
end;
if moveUpP1 then
if isReverseP1 then
heightP1 = math.min(SCREEN_BOTTOM,math.max(0,heightP1-1))
heightP1 = math.min(SCREEN_BOTTOM,math.max(0,heightP1-0.1))
else
heightP1 = math.min(SCREEN_BOTTOM,math.max(0,heightP1+1))
heightP1 = math.min(SCREEN_BOTTOM,math.max(0,heightP1+0.1))
end;
end;

Expand Down

0 comments on commit db03a65

Please sign in to comment.