mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-19 11:44:48 +00:00
Merge pull request #372 from jlmjlm/tidefix2
Check tide before drawing cells.
This commit is contained in:
commit
215be1ea17
@ -2856,6 +2856,8 @@ void celldrawer::draw() {
|
||||
|
||||
cells_drawn++;
|
||||
|
||||
checkTide(c);
|
||||
|
||||
#if CAP_TEXTURE
|
||||
if(texture::saving) {
|
||||
texture::config.apply(c, V, 0xFFFFFFFF);
|
||||
|
1
help.cpp
1
help.cpp
@ -895,7 +895,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++) ;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user