mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
fixed a crash bug when collecting an Orb of Safety via Orb of Water
This commit is contained in:
parent
0f1c8ec102
commit
1f5951dbee
@ -2455,8 +2455,11 @@ EX void livecaves() {
|
|||||||
else if(c->land == laLivefjord) {
|
else if(c->land == laLivefjord) {
|
||||||
if(hv > 0 && c->wall == waStrandedBoat) c->wall = waBoat;
|
if(hv > 0 && c->wall == waStrandedBoat) c->wall = waBoat;
|
||||||
if(hv > 0 && c->wall == waNone) {
|
if(hv > 0 && c->wall == waNone) {
|
||||||
if(c->item && c->cpdist == 1 && markOrb(itOrbWater))
|
if(c->item && c->cpdist == 1 && markOrb(itOrbWater)) {
|
||||||
|
bool saf = c->item == itOrbSafety;
|
||||||
collectItem(c);
|
collectItem(c);
|
||||||
|
if(saf) return;
|
||||||
|
}
|
||||||
c->wall = waSea;
|
c->wall = waSea;
|
||||||
}
|
}
|
||||||
if(hv < 0 && c->wall == waBoat) c->wall = waStrandedBoat;
|
if(hv < 0 && c->wall == waBoat) c->wall = waStrandedBoat;
|
||||||
|
Loading…
Reference in New Issue
Block a user