1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

fixed the Yendor beacon to appear in the correct place (usually on the boundary, not the closest visible tile)

This commit is contained in:
Zeno Rogue 2024-05-08 20:49:16 +02:00
parent c369c08bc9
commit 305d546ae1

View File

@ -4799,13 +4799,13 @@ EX void drawMarkers() {
using namespace yendor;
if(yii < isize(yi) && !yi[yii].found) {
cell *keycell = NULL;
int i;
for(i=0; i<YDIST; i++)
int last_i = 0;
for(int i=0; i<YDIST; i++)
if(yi[yii].path[i]->cpdist <= get_sightrange_ambush()) {
keycell = yi[yii].path[i];
keycell = yi[yii].path[i]; last_i = i;
}
if(keycell) {
for(; i<YDIST; i++) {
for(int i = last_i+1; i<YDIST; i++) {
cell *c = yi[yii].path[i];
if(inscreenrange(c))
keycell = c;