Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Version 3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
smallsco committed Jan 29, 2022
1 parent 9c5b144 commit c912b60
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## CHANGELOG

### v3.5.2 (2022-01-28)

* Fixed visual glitches when playing games in Wrapped mode with the "Curve on Turns" option enabled.

### v3.5.1 (2022-01-23)

* Fixed a regression bug introduced in version 3.4 that would cause starting food to fail to spawn on fixed board sizes.
Expand Down
2 changes: 1 addition & 1 deletion packager/lp-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ copyrightYear="2017-2022"
# (It should be fine to leave this as its default.)
identifier="org.scottsmall.mojave3"
# Current version (of your program)
version="3.5.1"
version="3.5.2"

###### Important! ONLY USE ABSOLUATE PATHS ######
# Where to place the resulting executables.
Expand Down
8 changes: 8 additions & 0 deletions src/modules/Board.lua
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ function Board:drawRaw( state, draw_grid, draw_vignette )
local py = snake.body[i-1].y - snake.body[i].y
local ax = snake.body[i].x - snake.body[i+1].x
local ay = snake.body[i].y - snake.body[i+1].y
if py > 1 then py = -1 end
if py < -1 then py = 1 end
if px > 1 then px = -1 end
if px < -1 then px = 1 end
if ay > 1 then ay = -1 end
if ay < -1 then ay = 1 end
if ax > 1 then ax = -1 end
if ax < -1 then ax = 1 end

if (px == ax and py == ay) or (px + ax == 0) or (py + ay == 0) or (not config.appearance.curveOnTurns) then
-- Draw a rectangle if the snake body is straight
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local Utils = {}
local ffi = require 'ffi'

-- Version constant
Utils.MOJAVE_VERSION = '3.5.1'
Utils.MOJAVE_VERSION = '3.5.2'

-- Shared Library Hashes (used for library updates)
-- If these change, we'll re-extract the corresponding library when the app starts.
Expand Down

0 comments on commit c912b60

Please sign in to comment.