Merge pull request #359 from jlmjlm/tidefix1

Calculate tidalsize before using it in mouseovers.
This commit is contained in:
Zeno Rogue 2024-02-19 14:22:49 +01:00 committed by GitHub
commit 26328f5493
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -881,6 +881,7 @@ EX void describeMouseover() {
if(shmup::on)
out += " (" + its(c->landparam)+")";
else {
calcTidalPhase();
bool b = c->landparam >= tide[(turncount-1) % tidalsize];
int t = 1;
for(; t < 1000 && b == (c->landparam >= tide[(turncount+t-1) % tidalsize]); t++) ;