mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-16 02:04:48 +00:00
fixed a Snake-related bug
This commit is contained in:
parent
9c8b16e9d0
commit
6acd227e27
3
game.cpp
3
game.cpp
@ -4558,6 +4558,9 @@ int inpair(cell *c, int colorpair) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int snake_pair(cell *c) {
|
int snake_pair(cell *c) {
|
||||||
|
if(c->mondir == NODIR)
|
||||||
|
return (1 << pattern_threecolor(c));
|
||||||
|
else
|
||||||
return (1 << pattern_threecolor(c)) | (1 << pattern_threecolor(c->mov[c->mondir]));
|
return (1 << pattern_threecolor(c)) | (1 << pattern_threecolor(c->mov[c->mondir]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user