Jump to content

Grass Gator mistakenly comparing the length of the string instead of the numbers


Cassielu
  • Fixed

The grass gator was supposed to move in a shallower direction during the dive.

But here ocean_depth is a string, and it compares the length of these strings to the "SHALLOW" string.

Because "DEEP" is less than "SHALLOW", the grass gator will therefore move deeper rather than shallower.

QQ20240609171815.jpg.88f083e89d1881bc04babd1dcd0d2a60.jpg

JPQMCXVDZU81@66AT(225_tmb.png.7d4572fad150f71d634daccf0258db42.png


Steps to Reproduce

1.see grassgator.lua and constant.lua

  • Haha 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

In this case it is not the length of the string but the lexicographically sorted value of the string that was being compared.

Changed Status to Fixed

  • Like 3
  • Thanks 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...