mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-30 17:02:51 +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:
parent
c369c08bc9
commit
305d546ae1
@ -4799,13 +4799,13 @@ EX void drawMarkers() {
|
|||||||
using namespace yendor;
|
using namespace yendor;
|
||||||
if(yii < isize(yi) && !yi[yii].found) {
|
if(yii < isize(yi) && !yi[yii].found) {
|
||||||
cell *keycell = NULL;
|
cell *keycell = NULL;
|
||||||
int i;
|
int last_i = 0;
|
||||||
for(i=0; i<YDIST; i++)
|
for(int i=0; i<YDIST; i++)
|
||||||
if(yi[yii].path[i]->cpdist <= get_sightrange_ambush()) {
|
if(yi[yii].path[i]->cpdist <= get_sightrange_ambush()) {
|
||||||
keycell = yi[yii].path[i];
|
keycell = yi[yii].path[i]; last_i = i;
|
||||||
}
|
}
|
||||||
if(keycell) {
|
if(keycell) {
|
||||||
for(; i<YDIST; i++) {
|
for(int i = last_i+1; i<YDIST; i++) {
|
||||||
cell *c = yi[yii].path[i];
|
cell *c = yi[yii].path[i];
|
||||||
if(inscreenrange(c))
|
if(inscreenrange(c))
|
||||||
keycell = c;
|
keycell = c;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user