1
0
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:
Zeno Rogue 2018-01-11 23:16:50 +01:00
parent 9c8b16e9d0
commit 6acd227e27

View File

@ -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]));
} }