1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-19 20:38:09 +00:00

fixed the warnings about comparing int and bool

This commit is contained in:
Zeno Rogue
2018-07-07 11:05:48 +02:00
parent 8b35bf6d4b
commit 98ea11de86
5 changed files with 11 additions and 9 deletions

View File

@@ -624,7 +624,7 @@ namespace patterns {
int sp = c->spin(0);
if(gp::on) {
sp = gp::last_dir(c);
sp ^= ishex2(c);
sp ^= int(ishex2(c));
}
if(geometry == gBolza2 && (!gp::on || gp_threecolor() == 2)) {
patterninfo si0;
@@ -666,7 +666,7 @@ namespace patterns {
int sp2 = c2->spin(0);
if(gp::on) {
sp2 = gp::last_dir(c2);
sp2 ^= ishex2(c2);
sp2 ^= int(ishex2(c2));
}
id2 = 8 * ((c2->master->fiftyval & 1) ^ (sp2 & 1));
}