From b56d2d21bfca8a281221356a084f7c749ba4fdf3 Mon Sep 17 00:00:00 2001 From: Jacob Mandelson Date: Mon, 22 Apr 2024 15:07:35 -0700 Subject: [PATCH] Check tide before drawing cells. --- celldrawer.cpp | 2 ++ help.cpp | 1 - system.cpp | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/celldrawer.cpp b/celldrawer.cpp index fd13e802..1c2c4deb 100644 --- a/celldrawer.cpp +++ b/celldrawer.cpp @@ -2830,6 +2830,8 @@ void celldrawer::draw() { cells_drawn++; + checkTide(c); + #if CAP_TEXTURE if(texture::saving) { texture::config.apply(c, V, 0xFFFFFFFF); diff --git a/help.cpp b/help.cpp index 7b49cfd8..c839c007 100644 --- a/help.cpp +++ b/help.cpp @@ -883,7 +883,6 @@ EX void describeMouseover() { if(shmup::on) out += " (" + its(c->landparam)+")"; else { - calcTidalPhase(); bool b = c->landparam >= tide[turncount % tidalsize]; int t = 1; for(; t < 1000 && b == (c->landparam >= tide[(turncount+t) % tidalsize]); t++) ; diff --git a/system.cpp b/system.cpp index d3c4e54e..7a3156a9 100644 --- a/system.cpp +++ b/system.cpp @@ -429,7 +429,8 @@ EX void initgame() { if(vid.use_smart_range == 2) vid.use_smart_range = 1; } if(!allowIncreasedSight()) vid.use_smart_range = 0; - callhooks(hooks_post_initgame); + calcTidalPhase(); + callhooks(hooks_post_initgame); } bool havesave = true;