diff options
| author | Chris B <1029chris@gmail.com> | 2016-06-10 19:44:26 -0700 |
|---|---|---|
| committer | Chris B <1029chris@gmail.com> | 2016-06-10 19:44:26 -0700 |
| commit | 4ec720afe5e2f712e5f73d79a6540e7feb29d482 (patch) | |
| tree | 98a94d628b7a317814524572da93a3b61269a544 /main.lua | |
| parent | c805934fb03808baeb688d3f629701b171b38873 (diff) | |
Fixed weird glitches
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,9 +42,9 @@ function love.update(dt) win[i].update = true end end - if fade == 1 and fadeOpacity ~= 255 then + if fade == 1 and fadeOpacity < 255 then fadeOpacity = fadeOpacity + 5 - elseif fade == 0 and fadeOpacity ~= 0 then + elseif fade == 0 and fadeOpacity > 0 then fadeOpacity = fadeOpacity - 5 end if scene == 1 then |
