mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-09 07:30:09 +00:00
fixed mov[NODIR] in findWormIvy
This commit is contained in:
parent
87ef9a68e3
commit
52196be04e
2
game.cpp
2
game.cpp
@ -2474,7 +2474,7 @@ void findWormIvy(cell *c) {
|
|||||||
bool bug = true;
|
bool bug = true;
|
||||||
for(int i=0; i<c->type; i++) {
|
for(int i=0; i<c->type; i++) {
|
||||||
cell* c2 = c->mov[i];
|
cell* c2 = c->mov[i];
|
||||||
if(c2 && isWorm(c2) && c2->mov[c2->mondir] == c) {
|
if(c2 && isWorm(c2) && c2->mondir != NODIR && c2->mov[c2->mondir] == c) {
|
||||||
settemp(c);
|
settemp(c);
|
||||||
c = c2;
|
c = c2;
|
||||||
bug = false;
|
bug = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user